diff --git a/account_financial_report/report/balance_full_5_cols.rml b/account_financial_report/report/balance_full_5_cols.rml index 51b8debd..5c8e443a 100644 --- a/account_financial_report/report/balance_full_5_cols.rml +++ b/account_financial_report/report/balance_full_5_cols.rml @@ -125,7 +125,7 @@ [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['balanceinit'] and a['balanceinit'] * a.get('change_sign') or 0.0, digits=2, grouping=True) or '']] + [[ (a['total']==True) and formatLang(a.get('change_sign', 1.0) * a.get('balanceinit'), digits=2, grouping=True) or '']] @@ -143,13 +143,13 @@ [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['ytd'] and a['ytd'] * a.get('change_sign') or 0.0, digits=2, grouping=True) or '']] + [[ (a['total']==True) and formatLang(a.get('change_sign', 1.0) * a.get('ytd'), digits=2, grouping=True) or '']] [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['balance'] and a['balance'] * a.get('change_sign') or 0.0, digits=2, grouping=True) or '']] + [[ (a['total']==True) and formatLang(a.get('change_sign', 1.0) * a.get('balance'), digits=2, grouping=True) or '']]