From 4f73d8ffd997c3ca02f5368b7aac14a173dd699b Mon Sep 17 00:00:00 2001 From: Humberto Arocha Date: Wed, 15 Aug 2012 11:11:59 -0530 Subject: [PATCH] [FIX] Mostrar Totales en Reporte de Cinco Columnas --- account_financial_report/report/balance_full_5_cols.rml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 '']]