[[ repeatIn(objects,'o') ]]

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

	[[ (o.partner_id and o.partner_id.title and o.partner_id.title.name) or '' ]] [[ (o.partner_id and o.partner_id.name) or '' ]] [[ display_address(o.partner_id) ]] Tel. : [[ (o.partner_id.phone) or removeParentNode('para') ]] Fax : [[ (o.partner_id.fax) or removeParentNode('para') ]] TIN : [[ (o.partner_id.vat) or removeParentNode('para') ]]

Invoice [[ ((o.type == 'out_invoice' and (o.state == 'open' or o.state == 'paid')) or removeParentNode('para')) and '' ]] [[ o.number ]]

PRO-FORMA [[ ((o.type == 'out_invoice' and o.state == 'proforma2') or removeParentNode('para')) and '' ]]

Draft Invoice [[ ((o.type == 'out_invoice' and o.state == 'draft') or removeParentNode('para')) and '' ]]

Cancelled Invoice [[ ((o.type == 'out_invoice' and o.state == 'cancel') or removeParentNode('para')) and '' ]] [[ o.number ]]

Refund [[ (o.type=='out_refund' or removeParentNode('para')) and '' ]] [[ o.number ]]

Supplier Refund [[ (o.type=='in_refund' or removeParentNode('para')) and '' ]] [[ o.number ]]

Supplier Invoice [[ (o.type=='in_invoice' or removeParentNode('para')) and '' ]] [[ o.number ]]

Description	Invoice Date	Partner Ref.
[[ o.name or ' ' ]]	[[ formatLang(o.date_invoice,date=True) ]]	[[ (o.partner_id and o.partner_id.ref) or ' ' ]]

Description	Taxes	Quantity	Unit Price	Disc.(%)	Price

[[ repeatIn(o.invoice_line,'l') ]]

[[ l.name ]]	[[ ', '.join([ lt.name or '' for lt in l.invoice_line_tax_id ]) ]]	[[ formatLang(l.quantity)]] [[ (l.uos_id and l.uos_id.name) or '' ]]	[[ formatLang(l.price_unit) ]]	[[ formatLang(l.discount, digits=get_digits(dp='Account')) ]]	[[ formatLang(l.price_subtotal, digits=get_digits(dp='Account')) ]] [[ o.currency_id.symbol ]]
[[ format(l.note or '') or removeParentNode('tr') ]]					
	Net Total:	[[ formatLang(o.amount_untaxed, digits=get_digits(dp='Account')) ]] [[ o.currency_id.symbol ]]
	Taxes:	[[ formatLang(o.amount_tax, digits=get_digits(dp='Account')) ]] [[ o.currency_id.symbol ]]
	Total:	[[ formatLang(o.amount_total, digits=get_digits(dp='Account')) ]] [[ o.currency_id.symbol ]]

Tax [[ o.tax_line==[] and removeParentNode('blockTable') ]]	Base	Amount	

[[ repeatIn(o.tax_line,'t') ]]

[[ t.name ]]	[[ formatLang(t.base, digits=get_digits(dp='Account')) ]] [[ o.currency_id.symbol ]]	[[ (t.tax_code_id and t.tax_code_id.notprintable) and removeParentNode('blockTable') or '' ]] [[ formatLang(t.amount, digits=get_digits(dp='Account')) ]] [[ o.currency_id.symbol ]]	

[[ (o.comment and format(o.comment )) or removeParentNode('para') ]]

[[ (o.payment_term and o.payment_term.note and format(o.payment_term and o.payment_term.note)) or removeParentNode('para') ]]

Fiscal Position Remark :	[[ (o.fiscal_position and o.fiscal_position.note and format(o.fiscal_position.note)) or removeParentNode('blockTable') ]]

2005-10-07T19:06:11