[[ repeatIn(get_lines(data), 'a') ]]
- | [[a.get('name', '')]] |
- [[a.get('balance',0.0)]] |
- [[a.get('balance_cmp',0.0)]] |
+ [[ 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 ]] |