[[ repeatIn(ids_to_objects(data['form']['partner_ids']),'o') ]] [[ setLang(o.lang) ]] [[ repeatIn(adr_get(o,'invoice'),'a' )]] [[ o.name or '' ]] [[ a['street'] or '']] [[ a['street2'] or removeParentNode('para') ]] [[ a['zip'] or '' ]] [[ a['city'] or '' ]] [[( a['state_id'] and a['state_id'][1]) or removeParentNode('para') ]] [[( a['country_id'] and a['country_id'][1]) or '']] VAT: [[ o.vat or removeParentNode('para') ]] Document : Customer account statement Date : [[ formatLang(time.strftime('%Y-%m-%d'),date = True) ]] Customer Ref : [[ o.ref or '' ]] [[ format(get_text(o,data['form']['followup_id'])) ]] Invoice Date Description Ref Maturity Date Currency Due Paid Maturity Li.
[[repeatIn(getLines(o), 'line') ]] [[ formatLang(line['date'],date = True) ]] [[ line['name'] ]] [[ line['ref'] ]] [[ line['date_maturity'] and formatLang(line['date_maturity'], date=True) ]] [[ formatLang(line['amount_currency'] )]] [[ line['amount_currency'] and line['currency_id'][1] or '' ]] [[ formatLang(line['debit']) ]] [[ formatLang(line['credit']) ]] [[ (line['date_maturity'] < time.strftime('%Y-%m-%d')) and formatLang(line['debit'] -line['credit']) or formatLang(0.0) ]] [[ company.currency_id.symbol ]] [[ line['blocked'] and 'X' or '' ]]
Sub-Total: [[formatLang(reduce(lambda x,y: x+y['debit'], getLines(o), 0.00)) ]] [[formatLang(reduce(lambda x,y: x+y['credit'], getLines(o), 0.00)) ]] [[ 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.symbol ]] Balance: [[ formatLang((reduce(lambda x,y: x+(y['debit'] - y['credit']), getLines(o), 0.00))) ]] [[ company.currency_id.symbol]]