diff --git a/addons/account/report/overdue.rml b/addons/account/report/overdue.rml index 69016b970d8..d3e2f4e8745 100644 --- a/addons/account/report/overdue.rml +++ b/addons/account/report/overdue.rml @@ -1,3 +1,3 @@ -[[ repeatIn(objects,'o') ]] [[ o.name ]][[ adr_get(o, 'invoice')['name'] ]][[ adr_get(o, 'invoice')['street'] ]][[ adr_get(o, 'invoice')['zip'] ]] [[ adr_get(o, 'invoice')['city'] ]][[ adr_get(o, 'invoice')['country_id'][1] ]] VAT: [[ o.vat or removeParentNode('para') ]] Document: Customer account statementDate: [[ time.strftime('%d/%m/%Y') ]]Customer Ref: [[ o.id ]] Dear Sir/Madam, Exception made of a mistake of our side, it seems that the following bills stay unpaid. Please, take appropriate measures in order to carry out this payment in the next 8 days. Would your payment have been carried out after this mail was sent, please consider the present one as void. Do not hesitate to contact our accounting departement at +32 81 81 37 00. Best regards. DateDescriptionRefMaturity dateDuePaidMaturityLi.[[repeatIn(getLines(o), 'line') ]] [[ line['date'] ]][[ line['name'] ]][[ line['ref'] ]][[ line['date_maturity'] ]][[ line['debit'] and '%.2f' % line['debit'] or '' ]][[ line['credit'] and '%.2f' % line['credit'] or '' ]][[ (line['date_maturity'] < time.strftime('%Y-%m-%d')) and (line['debit'] - line['credit']) or '' ]][[ line['blocked'] and 'X' or '' ]]Sub-Total: [[ '%.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) ]] Balance: [[ '%.2f' % (reduce(lambda x,y: x+(y['debit'] - y['credit']), getLines(o), 0)) ]] Total amount due: [[ '%.2f' % (reduce(lambda x,y: x+(y['debit']-y['credit']), getLines(o), 0)) ]] [[ company.currency_id.name ]]. +[[ repeatIn(objects,'o') ]] [[ o.name ]][[ adr_get(o, 'invoice')['name'] ]][[ adr_get(o, 'invoice')['street'] ]][[ adr_get(o, 'invoice')['zip'] ]] [[ adr_get(o, 'invoice')['city'] ]][[ adr_get(o, 'invoice')['country_id'] and adr_get(o, 'invoice')['country_id'][1] ]] VAT: [[ o.vat or removeParentNode('para') ]] Document: Customer account statementDate: [[ time.strftime('%d/%m/%Y') ]]Customer Ref: [[ o.id ]] Dear Sir/Madam, Exception made of a mistake of our side, it seems that the following bills stay unpaid. Please, take appropriate measures in order to carry out this payment in the next 8 days. Would your payment have been carried out after this mail was sent, please consider the present one as void. Do not hesitate to contact our accounting departement at +32 81 81 37 00. Best regards. DateDescriptionRefMaturity dateDuePaidMaturityLi.[[repeatIn(getLines(o), 'line') ]] [[ line['date'] ]][[ line['name'] ]][[ line['ref'] ]][[ line['date_maturity'] ]][[ line['debit'] and '%.2f' % line['debit'] or '' ]][[ line['credit'] and '%.2f' % line['credit'] or '' ]][[ (line['date_maturity'] < time.strftime('%Y-%m-%d')) and (line['debit'] - line['credit']) or '' ]][[ line['blocked'] and 'X' or '' ]]Sub-Total: [[ '%.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) ]] Balance: [[ '%.2f' % (reduce(lambda x,y: x+(y['debit'] - y['credit']), getLines(o), 0)) ]] Total amount due: [[ '%.2f' % (reduce(lambda x,y: x+(y['debit']-y['credit']), getLines(o), 0)) ]] [[ company.currency_id.name ]].