[%- USE T8 %] [% USE HTML %] [% USE LxERP %]

[% title %]: [% HTML.escape(export.ids.join(', ')) %]

[%- IF show_post_payments_button %] [%- END %] [%- IF show_post_payments_button %] [%- ELSE %] [%- END %] [%- FOREACH item = export.items %] [%- IF show_post_payments_button %] [%- END %] [%- END %]
[% 'Invoice' | $T8 %] [% 'Vendor' | $T8 %] [% 'Source bank account' | $T8 %] [% 'Target bank account' | $T8 %] [% 'Amount' | $T8 %] [% 'Reference' | $T8 %] [% 'Requested execution date' | $T8 %] [% 'Execution date' | $T8 %]
  [% 'IBAN' | $T8 %] [% 'BIC' | $T8 %] [% 'IBAN' | $T8 %] [% 'BIC' | $T8 %]   
[%- UNLESS item.executed %] [%- END %] [% HTML.escape(item.invnumber) %] [% HTML.escape(item.vendor_name) %] [% HTML.escape(item.our_iban) %] [% HTML.escape(item.our_bic) %] [% HTML.escape(item.vendor_iban) %] [% HTML.escape(item.vendor_bic) %] [% HTML.escape(LxERP.format_amount(item.amount, 2)) %] [% HTML.escape(item.reference) %] [% HTML.escape(item.requested_execution_date) %] [%- IF item.executed %] [% HTML.escape(item.execution_date) %] [%- ELSIF item.export_closed %] [% 'not executed' | $T8 %] [%- ELSE %] [%- END %]


[%- IF show_post_payments_button %]

[%- ELSE %]

[%- FOREACH item = export.items %] [%- IF item.executed %] [%- END %] [%- END %] [%- END %]