From a343cbe7acb20111280c6db4392840a0d702e570 Mon Sep 17 00:00:00 2001 From: "mra (Open ERP)" Date: Wed, 28 Jan 2009 18:09:19 +0530 Subject: [PATCH] account followup modifs bzr revid: mra@tinyerp.com-20090128123919-5j0qvd7bm0nu81mh --- addons/account_followup/report/rappel.rml | 161 ++++++++++++---------- 1 file changed, 88 insertions(+), 73 deletions(-) diff --git a/addons/account_followup/report/rappel.rml b/addons/account_followup/report/rappel.rml index ecb733f6449..da5f6657be7 100644 --- a/addons/account_followup/report/rappel.rml +++ b/addons/account_followup/report/rappel.rml @@ -30,6 +30,8 @@ + + @@ -41,23 +43,28 @@ - - - - - + + + + + - - - - - - - - - - - + + + + + + + + + + + + + + + + @@ -67,17 +74,17 @@ - [[ repeatIn(ids_to_objects(data['form']['partner_ids']),'o') ]] [[ setLang(o.lang) ]] + [[ repeatIn(ids_to_objects(data['form']['partner_ids']),'o') ]] [[ setLang(o.lang) ]] - + [[ o.name ]] - [[ repeatIn(adr_get(o,'invoice'),'a' )]] + [[ repeatIn(adr_get(o,'invoice'),'a' )]] [[ a['name'] ]] [[ a['street'] ]] [[ a['zip'] ]] @@ -90,7 +97,7 @@ - + Document: Customer account statement @@ -98,142 +105,150 @@ Date: [[ time.strftime('%d/%m/%Y') ]] - Customer Ref: [[ o.id ]] - + Customer Ref: [[ o.id ]] + - Dear [[ a['name'] ]], - - + Dear [[ a['name'] ]], + + - + - - [[ format(get_text(o)) ]] - + [[ format(get_text(o)) ]] - - - - - Best Regards, - - + - + Best Regards, + + + + - Date + Date - Description + Description - Ref + Ref - Maturity date + Maturity date - Due + Due - Paid + Paid - Maturity + Maturity - Li. + Li. + + + Amount + + + cur. - + [[repeatIn(getLines(o), 'line') ]] [[ line['date'] ]] - [[ line['name'] ]] + [[ line['name'] ]] - [[ line['ref'] ]] + [[ line['ref'] ]] - [[ line['date_maturity'] ]] + [[ line['date_maturity'] ]] - [[ line['debit'] and '%.2f' % line['debit'] or '' ]] + [[ line['debit'] and '%.2f' % line['debit'] or '' ]] - [[ line['credit'] and '%.2f' % line['credit'] or '' ]] + [[ line['credit'] and '%.2f' % line['credit'] or '' ]] - [[ (line['date_maturity'] < time.strftime('%Y-%m-%d')) and (line['debit'] - line['credit']) or '' ]] + [[ (line['date_maturity'] < time.strftime('%Y-%m-%d')) and (line['debit'] - line['credit']) or '' ]] - [[ line['blocked'] and 'X' or '' ]] + [[ line['blocked'] and 'X' or '' ]] + + + [[ line['amount_currency'] ]] + + + [[ line['currency_id'] and line['currency_id'][1] or '' ]] - + - Sub-Total: + Sub-Total: - [[ '%.2f' % (reduce(lambda x,y: x+y['debit'], getLines(o), 0)) ]] + [[ '%.2f' % (reduce(lambda x,y: x+y['debit'], getLines(o), 0)) ]] - + [[ '%.2f' % (reduce(lambda x,y: x+y['credit'], getLines(o), 0)) ]] - [[ reduce(lambda x,y: x+(y['debit'] - y['credit']), filter(lambda x: x['date_maturity'] < time.strftime('%Y-%m-%d'), getLines(o)), 0) ]] + [[ reduce(lambda x,y: x+(y['debit'] - y['credit']), filter(lambda x: x['date_maturity'] < time.strftime('%Y-%m-%d'), getLines(o)), 0) ]] - + - Balance: + Balance: - [[ '%.2f' % (reduce(lambda x,y: x+(y['debit'] - y['credit']), getLines(o), 0)) ]] - - - - - - - - - - + [[ '%.2f' % (reduce(lambda x,y: x+(y['debit'] - y['credit']), getLines(o), 0)) ]] + + + + + + + + + + - - + + Total amount due: