From 58c91fd71e42e6b40a37407949dd17efe6422d4f Mon Sep 17 00:00:00 2001 From: "Fernando.rangel" Date: Sat, 27 Jul 2013 17:43:32 -0700 Subject: [PATCH] [IMP][account_financial_report]add colors in lines its report --- .../balance_full_4_cols_journal_ledger.rml | 63 +++++++++++++++++-- 1 file changed, 59 insertions(+), 4 deletions(-) diff --git a/account_financial_report/report/balance_full_4_cols_journal_ledger.rml b/account_financial_report/report/balance_full_4_cols_journal_ledger.rml index 1ce10614..1ae239b9 100644 --- a/account_financial_report/report/balance_full_4_cols_journal_ledger.rml +++ b/account_financial_report/report/balance_full_4_cols_journal_ledger.rml @@ -47,6 +47,14 @@ + + + + + + + + @@ -286,11 +294,58 @@
[[ repeatIn(j.get('obj').line_id, 'k') ]] + + + + + [[ k.account_id.code == a['code'] and k.name or removeParentNode('blockTable') ]] + + + + + [[ k.ref and k.ref or '']] + + + + + [[ k.partner_id and k.partner_id.name or '']] + + + + + [[ k.account_id and k.account_id.code or '']] + + + + + [[ k.account_id and k.account_id.name or '']] + + + + + [[ k.account_id.type<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] + [[ k.debit and formatLang(k.debit, digits=2, grouping=True) or '' ]] + + + + + [[ k.account_id.type<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] + [[ k.credit and formatLang(k.credit, digits=2, grouping=True) or '' ]] + + + + + [[ k.account_id.type<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] + [[ k.reconcile_id and k.reconcile_id.name or k.reconcile_partial_id and k.reconcile_partial_id.name or '']] + + + + - [[ k.name ]] + [[ k.account_id.code != a['code'] and k.name or removeParentNode('blockTable') ]] @@ -315,19 +370,19 @@ - [[ k.type<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] + [[ k.account_id.type<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] [[ k.debit and formatLang(k.debit, digits=2, grouping=True) or '' ]] - [[ k.type<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] + [[ k.account_id.type<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] [[ k.credit and formatLang(k.credit, digits=2, grouping=True) or '' ]] - [[ k.type<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] + [[ k.account_id.type<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] [[ k.reconcile_id and k.reconcile_id.name or k.reconcile_partial_id and k.reconcile_partial_id.name or '']]