%for inv in objects : <% setLang(inv.partner_id.lang) %> %if inv.address_invoice_id.country_id : %endif %if inv.address_invoice_id.phone : %endif %if inv.address_invoice_id.fax : %endif %if inv.address_invoice_id.email : %endif %if inv.partner_id.vat : %endif
${inv.partner_id.title or ''|entity} ${inv.partner_id.name |entity}
${inv.address_invoice_id.street or ''|entity}
${inv.address_invoice_id.street2 or ''|entity}
${inv.address_invoice_id.zip or ''|entity} ${inv.address_invoice_id.city or ''|entity}
${inv.address_invoice_id.country_id.name or ''|entity}
${_("Tel")}: ${inv.address_invoice_id.phone|entity}
${_("Fax")}: ${inv.address_invoice_id.fax|entity}
${_("E-mail")}: ${inv.address_invoice_id.email|entity}
${_("VAT")}: ${inv.partner_id.vat|entity}

%if inv.type == 'out_invoice' : ${_("Invoice")} ${inv.number or ''|entity} %elif inv.type == 'in_invoice' : ${_("Supplier Invoice")} ${inv.number or ''|entity} %elif inv.type == 'out_refund' : ${_("Refund")} ${inv.number or ''|entity} %elif inv.type == 'in_refund' : ${_("Supplier Refund")} ${inv.number or ''|entity} %endif

${_("Document")}${_("Invoice Date")}${_("Partner Ref.")}
${inv.name}${formatLang(inv.date_invoice, date=True)|entity} 


%for line in inv.invoice_line : %if line.note : %endif %endfor
${_("Description")}${_("Taxes")}${_("QTY")}${_("Unit Price")}${_("Disc.(%)")}${_("Price")}
${line.name|entity}${ ', '.join([ tax.name or '' for tax in line.invoice_line_tax_id ])|entity}${line.quantity}${formatLang(line.price_unit)}${line.discount or 0.00}${formatLang(line.price_subtotal)}
${line.note |entity}
Net Total:${formatLang(inv.amount_untaxed)}
Taxes:${formatLang(inv.amount_tax)}
Total:${formatLang(inv.amount_total)}
%if inv.tax_line : %for t in inv.tax_line : %endfor %endif
Tax${_("Base")}${_("Amount")}
${ t.name|entity } ${ t.base|entity} ${ formatLang(t.amount) }
${_("Total")} ${ formatLang(inv.amount_tax) }

%endfor