[%- USE T8 %] [% USE HTML %] [% USE LxERP %] [% IF vc == 'vendor' %] [% SET is_vendor = 1 %] [% SET arap = 'ap' %] [% SET iris = 'ir' %] [% ELSE %] [% SET is_vendor = 0 %] [% SET arap = 'ar' %] [% SET iris = 'is' %] [%- END %]

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

[%- IF show_post_payments_button %] [%- END %] [%- IF is_vendor %] [%- ELSE %] [%- END %] [%- IF show_post_payments_button %] [%- ELSE %] [%- END %] [%- FOREACH item = export.items %] [%- IF show_post_payments_button %] [%- END %] [%- END %]
[% 'Invoice' | $T8 %] [%- IF is_vendor %][% 'Vendor' | $T8 %][%- ELSE %][%- LxERP.t8('Customer') %][%- END %][% 'Source bank account' | $T8 %] [% 'Target bank account' | $T8 %][% 'Target bank account' | $T8 %] [% 'Source 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.vc_name) %] [% HTML.escape(item.our_iban) %] [% HTML.escape(item.our_bic) %] [% HTML.escape(item.vc_iban) %] [% HTML.escape(item.vc_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 %]