[[ repeatIn(ids_to_objects(data['form']['partner_ids']),'o') ]]

[[ setLang(o.partner_id.lang) ]]

[[ repeatIn(adr_get(o,'invoice'),'a' )]]	[[ o.partner_id.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.partner_id.vat or removeParentNode('para') ]]

Document : Customer account statement

Date : [[ formatLang(data['form']['date'], date = True) ]]

Customer Ref : [[ o.partner_id.ref or '' ]]

[[ format(get_text(o,data['form']['followup_id'])) ]]

[[ repeatIn(getLines(o), 'cur_lines') ]] Invoice Date	Description	Ref	Maturity Date	Amount	Li.

[[repeatIn(cur_lines['line'], 'line') ]]

[[ formatLang(line['date'],date = True) ]]	[[ line['name'] ]]	[[ line['ref'] ]]	[[ line['date_maturity'] and formatLang(line['date_maturity'], date=True) ]]	[[ formatLang(line['balance']) ]] [[ line['currency_id'] ]]	[[ line['blocked'] and 'X' or '' ]]
	Total:	[[formatLang(reduce(lambda x,y: x+y['balance'], cur_lines['line'], 0.00)) ]] [[ line['currency_id'] ]]

2005-10-07T19:06:11

vir