for each="invoice in records"
replace text:p="set_lang(invoice.party.lang)"
replace text:p="invoice.set_lang(invoice.party.lang)"
for each="line in invoice.report_purchase_commission_address.splitlines()"line/for
COMMISSION INVOICE INVOICE N. invoice.report_purchase_commission_invoice_number CONTRACT N. invoice.report_purchase_commission_contract_number	format_date(invoice.report_purchase_commission_date or today, invoice.party.lang)
Bill of Lading N. invoice.report_purchase_commission_bl_number dated format_date(invoice.report_purchase_commission_bl_date, invoice.party.lang) if invoice.report_purchase_commission_bl_date else '' M/V invoice.report_purchase_commission_vessel

COMMISSION invoice.report_purchase_commission_invoice_line invoice.report_purchase_commission_quantity_unit_upper invoice.report_purchase_commission_quantity_display Lbs invoice.report_purchase_commission_lbs_display Your commission: invoice.report_purchase_commission_rate_line invoice.report_purchase_commission_secondary_rate_line VAT 0% RATE
TOTAL DUE TO YOU	invoice.report_purchase_commission_currency_name	invoice.report_purchase_commission_total_display
invoice.company.party.name
/for