[%- IF invoice.vc_bank_info_ok && !invoice.is_sepa_blocked %]
[% L.checkbox_tag("ids[]", value=invoice.id, checked=invoice.checked) %]
[%- END %]
[%- IF loop.first || (previous_vcname != invoice.vcname) %]
[%- GET HTML.escape(invoice.vcname);
SET previous_vcname = invoice.vcname;
IF !invoice.vc_bank_info_ok;
IF invoice.checked;
GET ' (2) ';
ELSE;
GET ' (1) ';
END;
SET show_vc_bank_info_footnote = '1';
END; -%]
[%- END -%]
[%- GET HTML.escape(invoice.invnumber);
IF invoice.is_sepa_blocked;
GET ' (*) ';
SET show_is_sepa_blocked_footnote = '1';
END;
-%]
[% LxERP.format_amount(invoice.invoice_amount, 2) %]
[% LxERP.format_amount(invoice.transfer_amount * -1, 2) %]
[% IF invoice.within_skonto_period %] [% LxERP.format_amount(invoice.amount_less_skonto, 2) %] [% ELSE %] [% LxERP.format_amount(invoice.open_amount - invoice.transfer_amount, 2) %][% END %]
[% invoice.transdate %]
[% invoice.duedate %]
[% IF INSTANCE_CONF.get_sepa_reference_add_vc_vc_id %]
[%- SET reference = invoice.reference_prefix _ invoice.invnumber _ invoice.reference_prefix_vc _ invoice.vc_vc_id %]
[% ELSE %]
[%- SET reference = invoice.reference_prefix _ invoice.invnumber %]
[% END %]
[% L.select_tag('bank_transfers[].payment_type', invoice.payment_select_options, value_key => 'payment_type', title_key => 'display', id => 'payment_type_' _ loop.count, class => 'type_target' ) %]
[%- IF invoice.skonto_amount %] [% LxERP.format_amount(invoice.percent_skonto, 2) %] % = [% LxERP.format_amount(invoice.skonto_amount, 2) %] € bis [% invoice.skonto_date %] [%- END %]
[%- END %]