[[ repeatIn(get_lines(data), 'a') ]]
- | [[ a.get('type')=='report' and a.get('name') or removeParentNode('td') ]] |
- [[ a.get('type')=='report' and formatLang(a.get('balance')) or removeParentNode('td') ]][[company.currency_id.symbol ]] |
- [[ a.get('type')=='report' and formatLang(a.get('balance_cmp')) or removeParentNode('td') ]][[company.currency_id.symbol ]] |
- [[ a.get('type') == 'account' and a.get('name') or removeParentNode('td') ]]
- [[ a.get('type')=='account' and (a.get('account_type')=='view' and a.get('level',1) >= 3) and setTag('para','para',{'style': 'terp_level_'+str(min(3,a.get('level',1)))+'_name_bold'}) or setTag('para','para',{'style': 'terp_level_'+str(min(4,a.get('level',1)))+'_name'}) ]] |
- [[ a.get('type')=='account' and (a.get('level',1) <>2) or removeParentNode('td') ]][[ (a.get('account_type') == 'view' and a.get('level',1) >= 3) and setTag('para','para',{'style': 'terp_level_3_balance_bold'}) or setTag('para','para',{'style': 'terp_level_'+str(min(3,a.get('level',1)))+'_balance'}) ]][[ formatLang(a.get('balance')) ]][[company.currency_id.symbol ]] |
- [[ a.get('type')=='account' and a.get('level',1) == 2 or removeParentNode('td') ]][[ formatLang(a.get('balance')) ]] [[company.currency_id.symbol ]] |
- [[ a.get('type')=='account' and (a.get('level',1) <>2) or removeParentNode('td') ]][[ (a.get('account_type') == 'view' and a.get('level',1) >= 3) and setTag('para','para',{'style': 'terp_level_3_balance_bold'}) or setTag('para','para',{'style': 'terp_level_'+str(min(3,a.get('level',1)))+'_balance'}) ]][[ formatLang(a.get('balance_cmp')) ]][[company.currency_id.symbol ]] |
- [[ a.get('type')=='account' and a.get('level',1) == 2 or removeParentNode('td') ]][[ formatLang(a.get('balance_cmp')) ]] [[company.currency_id.symbol ]] |
+ [[ (a.get('level') <> 0) or removeParentNode('tr') ]]
+ [[ setTag('tr','tr',{'style': 'Table'+str(min(3,'level' in a and a.get('level') or 1))}) ]]
+ [[ setTag('para','para',{'style': 'terp_level_'+str(min(6,a['level']))+'_name'}) ]] [[ a.get('name') ]] |
+ [[ a.get('level') == 4 or removeParentNode('td') ]][[ setTag('para','para',{'style': 'terp_level_'+str(min(6,a['level']))+'_balance'}) ]][[ formatLang(a.get('balance'))]] [[company.currency_id.symbol]] |
+ [[ a.get('level') <> 4 or removeParentNode('td') ]][[ setTag('para','para',{'style': 'terp_level_'+str(min(6,a['level']))+'_balance'}) ]][[ formatLang(a.get('balance'))]] [[company.currency_id.symbol]] |
+ [[ a.get('level') == 4 or removeParentNode('td') ]][[ setTag('para','para',{'style': 'terp_level_'+str(min(6,a['level']))+'_balance'}) ]][[ formatLang(a.get('balance_cmp'))]] [[company.currency_id.symbol]] |
+ [[ a.get('level') <> 4 or removeParentNode('td') ]][[ setTag('para','para',{'style': 'terp_level_'+str(min(6,a['level']))+'_balance'}) ]][[ formatLang(a.get('balance_cmp'))]] [[company.currency_id.symbol]] |