From f2754bb11ec74451d9c07add5a5d66e41969de6e Mon Sep 17 00:00:00 2001 From: "Apa (Open ERP)" Date: Thu, 22 Jan 2009 17:29:58 +0530 Subject: [PATCH] modify some account report rml for set formatLang function bzr revid: apa@tinyerp.com-20090122115958-em2p1zru9udm48j4 --- addons/account/report/account_balance.rml | 12 ++++++------ addons/account/report/account_journal.rml | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/addons/account/report/account_balance.rml b/addons/account/report/account_balance.rml index e4bb97a6602..1df82ea95f0 100644 --- a/addons/account/report/account_balance.rml +++ b/addons/account/report/account_balance.rml @@ -214,16 +214,16 @@ [[ a['name'] ]] - [[ a['type']=='view' and removeParentNode('font') ]][[ a['debit'] and formatLang(a['debit']) or '0.00' ]] - [[ a['type']<>'view' and removeParentNode('font') ]] [[a['debit'] and formatLang(a['debit']) or '0.00' ]] + [[ a['type']=='view' and removeParentNode('font') ]][[ formatLang(a['debit']) ]] + [[ a['type']<>'view' and removeParentNode('font') ]] [[ formatLang(a['debit']) ]] - [[ a['type']=='view' and removeParentNode('font') ]][[ a['credit'] and formatLang(a['credit']) or '0.00' ]] - [[ a['type']<>'view' and removeParentNode('font') ]] [[a['credit'] and formatLang(a['credit']) or '0.00' ]] + [[ a['type']=='view' and removeParentNode('font') ]][[ formatLang(a['credit']) ]] + [[ a['type']<>'view' and removeParentNode('font') ]] [[ formatLang(a['credit']) ]] - [[ a['type']=='view' and removeParentNode('font') ]][[ a['balance'] and formatLang(a['balance']) or '0.00' ]] - [[ a['type']<>'view' and removeParentNode('font') ]] [[a['balance'] and formatLang(a['balance']) or '0.00' ]] + [[ a['type']=='view' and removeParentNode('font') ]][[ formatLang(a['balance']) ]] + [[ a['type']<>'view' and removeParentNode('font') ]] [[ formatLang(a['balance']) ]] diff --git a/addons/account/report/account_journal.rml b/addons/account/report/account_journal.rml index 4831315864a..66bee0571e7 100644 --- a/addons/account/report/account_journal.rml +++ b/addons/account/report/account_journal.rml @@ -152,16 +152,16 @@ - [[ '%.2f' % sum_debit(o.period_id.id, o.journal_id.id) or '0.00' ]] + [[ formatLang(sum_debit(o.period_id.id, o.journal_id.id)) ]] - [[ '%.2f' % sum_credit(o.period_id.id, o.journal_id.id) or '0.00' ]] + [[ formatLang(sum_credit(o.period_id.id, o.journal_id.id)) ]] [[ repeatIn(lines(o.period_id.id, o.journal_id.id), 'line') ]] - [[ line.date ]] + [[ formatLang(line.date,date=True) ]] [[ line.ref ]] @@ -176,10 +176,10 @@ [[ line.name ]] - [[ line.debit and '%.2f' % line.debit or '0.00' ]] + [[ formatLang(line.debit) ]] - [[ line.credit and '%.2f' % line.credit or '0.00' ]] + [[ formatLang(line.credit) ]]