[%- USE T8 %] [%- USE L %] [% 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 %]

[%- IF is_vendor %] [% 'Please select the source bank account for the transfers:' | $T8 %] [%- ELSE %] [% 'Please select the destination bank account for the collections:' | $T8 %] [%- END %]
[% L.select_tag('bank_account', BANK_ACCOUNTS, title_key='displayable_name', with_empty=0, style='width:450px', ) %]

[%- FOREACH invoice = INVOICES %] [%- END %]
[% IF is_vendor %][% 'Vendor' | $T8 %][%- ELSE %][%- LxERP.t8('Customer') %][%- END %] [% 'Invoice' | $T8 %] [% 'Amount' | $T8 %] [% 'Open amount' | $T8 %] [% 'Invoice Date' | $T8 %] [% 'Due Date' | $T8 %] [% 'Purpose' | $T8 %] [% 'Bank transfer amount' | $T8 %] [% 'Payment type' | $T8 %] [% 'Skonto information' | $T8 %]
[%- IF invoice.vc_bank_info_ok %] [% 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 -%] [% HTML.escape(invoice.invnumber) %] [% LxERP.format_amount(invoice.invoice_amount-invoice.open_sepa_transfer_amount, 2) %] [% LxERP.format_amount(invoice.open_amount-invoice.open_sepa_transfer_amount, 2) %] [% 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 %]

[%- IF show_vc_bank_info_footnote %]

(1) [%- IF is_vendor %] [%- 'No bank information has been entered in this vendor\'s master data entry. You cannot create bank transfers unless you enter bank information.' | $T8 %] [% "The required information consists of the IBAN and the BIC." | $T8 %] [%- ELSE %] [%- 'No bank information has been entered in this customer\'s master data entry. You cannot create bank collections unless you enter bank information.' | $T8 %] [% "The required information consists of the IBAN, the BIC, the mandator ID and the mandate's date of signature." | $T8 %] [%- END %]

(2) [%- IF is_vendor %] [%- 'No bank information has been entered in this vendor\'s master data entry. You cannot create bank transfers unless you enter bank information.' | $T8 %] [% "The required information consists of the IBAN and the BIC." | $T8 %] [% LxERP.t8("Additionally the invoice is not marked for direct debit and would have been checked automatically had the bank information been entered.") %] [%- ELSE %] [%- 'No bank information has been entered in this customer\'s master data entry. You cannot create bank collections unless you enter bank information.' | $T8 %] [% "The required information consists of the IBAN, the BIC, the mandator ID and the mandate's date of signature." | $T8 %] [% LxERP.t8("Additionally the invoice is marked for direct debit and would have been checked automatically had the bank information been entered.") %] [%- END %]

[%- END %]