From d9fe73f4ac8f80aabcb41c6a25d7861ff19cfcdf Mon Sep 17 00:00:00 2001 From: "Apa (Open ERP)" <apa@tinyerp.com> Date: Thu, 12 Feb 2009 11:40:52 +0530 Subject: [PATCH] Add formatLang function in overdue payment report(both sxw and rml) bzr revid: apa@tinyerp.com-20090212061052-38se7n5re9a1iubx --- addons/account/report/overdue.rml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/account/report/overdue.rml b/addons/account/report/overdue.rml index fa949419cb04..745924f56de8 100644 --- a/addons/account/report/overdue.rml +++ b/addons/account/report/overdue.rml @@ -114,7 +114,7 @@ <font color="white"> </font> </para> <para style="terp_default_9">Document: Customer account statement</para> - <para style="terp_default_9">Date: [[ formatLang(time.strftime('%Y-%m-%d'),date=True) ]]</para> + <para style="terp_default_9">Date: [[ formatLang(time.strftime('%Y/%m/%d'),date=True) ]]</para> <para style="terp_default_9">Customer Ref: [[ o.ref ]]</para> <para style="terp_default_9"> <font color="white"> </font> @@ -205,13 +205,13 @@ <para style="terp_default_Bold_9">Sub-Total : </para> </td> <td> - <para style="terp_default_Right_9">[[ '%.2f' % (reduce(lambda x, y: x + (y['debit'] * (y['account_id']['type'] == 'payable' and -1 or 1)), getLines(o), 0)) ]]</para> + <para style="terp_default_Right_9">[[ formatLang((reduce(lambda x, y: x + (y['debit'] * (y['account_id']['type'] == 'payable' and -1 or 1)), getLines(o), 0))) ]]</para> </td> <td> - <para style="terp_default_Right_9">[[ '%.2f' % (reduce(lambda x ,y: x + (y['credit'] * (y['account_id']['type'] == 'payable' and -1 or 1)), getLines(o), 0)) ]] </para> + <para style="terp_default_Right_9">[[ formatLang((reduce(lambda x ,y: x + (y['credit'] * (y['account_id']['type'] == 'payable' and -1 or 1)), getLines(o), 0))) ]] </para> </td> <td> - <para style="terp_default_Right_9">[[ '%.2f' % (reduce(lambda x, y: x + ((y['debit'] - y['credit']) * (y['account_id']['type'] == 'payable' and -1 or 1)), filter(lambda x: x['date_maturity'] < time.strftime('%Y-%m-%d'), getLines(o)), 0)) ]]</para> + <para style="terp_default_Right_9">[[ formatLang((reduce(lambda x, y: x + ((y['debit'] - y['credit']) * (y['account_id']['type'] == 'payable' and -1 or 1)), filter(lambda x: x['date_maturity'] < time.strftime('%Y-%m-%d'), getLines(o)), 0))) ]]</para> </td> <td> <para style="terp_default_9"> @@ -229,7 +229,7 @@ <para style="terp_default_Bold_9">Balance : </para> </td> <td> - <para style="terp_default_Right_9">[[ '%.2f' % (reduce(lambda x, y: x +((y['debit'] - y['credit']) * (y['account_id']['type'] == 'payable' and -1 or 1)), getLines(o), 0)) ]]</para> + <para style="terp_default_Right_9">[[ formatLang((reduce(lambda x, y: x +((y['debit'] - y['credit']) * (y['account_id']['type'] == 'payable' and -1 or 1)), getLines(o), 0))) ]]</para> </td> <td> <para style="terp_default_9"> @@ -248,7 +248,7 @@ </td> </tr> </blockTable> - <para style="terp_default_9">Total amount due: [[ '%.2f' % (reduce(lambda x, y: x + ((y['debit'] - y['credit']) * (y['account_id']['type'] == 'payable' and -1 or 1)), getLines(o), 0)) ]] [[ company.currency_id.name ]].</para> + <para style="terp_default_9">Total amount due: [[ formatLang((reduce(lambda x, y: x + ((y['debit'] - y['credit']) * (y['account_id']['type'] == 'payable' and -1 or 1)), getLines(o), 0))) ]] [[ company.currency_id.name ]].</para> <para style="terp_default_8"> <font color="white"> </font> </para> -- GitLab