From 5ca9f20766b44520eb207d2d2cd65186cebfb3cd Mon Sep 17 00:00:00 2001 From: "Apa (Open ERP)" Date: Thu, 12 Feb 2009 12:52:02 +0530 Subject: [PATCH] Add formatLang function in account followup report bzr revid: apa@tinyerp.com-20090212072202-rg4g1a2l10vdz00u --- addons/account_followup/report/rappel.rml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/account_followup/report/rappel.rml b/addons/account_followup/report/rappel.rml index 257365ce807..97aaa377c1e 100644 --- a/addons/account_followup/report/rappel.rml +++ b/addons/account_followup/report/rappel.rml @@ -157,7 +157,7 @@
[[repeatIn(getLines(o), 'line') ]] - + [[ formatLang(line['date'],date = True) ]] @@ -181,7 +181,7 @@ [[ formatLang(line['credit']) ]] [[ company.currency_id.name]] - [[ (line['date_maturity'] < time.strftime('%Y-%m-%d')) and (line['debit'] -line['credit']) or '0.00' ]] [[ company.currency_id.name]] + [[ (line['date_maturity'] < time.strftime('%Y-%m-%d')) and formatLang(line['debit'] -line['credit']) ]] [[ company.currency_id.name]] [[ line['blocked'] and 'X' or '' ]] @@ -226,7 +226,7 @@ [[formatLang(reduce(lambda x,y: x+y['credit'], getLines(o), 0.00)) ]] [[ company.currency_id.name]] - [[ reduce(lambda x,y: x+(y['debit'] - y['credit']), filter(lambda x: x['date_maturity'] < time.strftime('%Y-%m-%d'), getLines(o)), 0) ]] [[ company.currency_id.name]] + [[ formatLang(reduce(lambda x,y: x+(y['debit'] - y['credit']), filter(lambda x: x['date_maturity'] < time.strftime('%Y-%m-%d'), getLines(o)), 0)) ]] [[ company.currency_id.name]] @@ -264,7 +264,7 @@ Balance: - [[ '%.2f' % (reduce(lambda x,y: x+(y['debit'] - y['credit']), getLines(o), 0.00)) ]] [[ company.currency_id.name]] + [[ formatLang((reduce(lambda x,y: x+(y['debit'] - y['credit']), getLines(o), 0.00))) ]] [[ company.currency_id.name]]