3 [% USE HTML %][% USE LxERP %]
4 [% IF vc == 'vendor' %]
5 [% SET is_vendor = 1 %]
9 [% SET is_vendor = 0 %]
14 [%- IF error_message %]
15 <p><div class="message_error">[% error_message %]</div></p>
18 <p><div class="listtop">[% title %]</div></p>
20 <form action="sepa.pl" method="post">
23 [% 'Please select the source bank account for the transfers:' | $T8 %]
25 [% 'Please select the destination bank account for the collections:' | $T8 %]
28 [%- INCLUDE generic/multibox.html
29 name = 'bank_account.id',
32 label_sub = 'bank_account_label',
39 [% 'Please Check the bank information for each vendor:' | $T8 %]
41 [% 'Please Check the bank information for each customer:' | $T8 %]
46 <th class="listheading">[%- IF is_vendor %][% 'Vendor' | $T8 %][%- ELSE %][%- LxERP.t8('Customer') %][%- END %]</th>
47 <th class="listheading">[% 'IBAN' | $T8 %]</th>
48 <th class="listheading">[% 'BIC' | $T8 %]</th>
49 <th class="listheading">[% 'Bank' | $T8 %]</th>
52 [%- FOREACH vbi = VC_BANK_INFO %]
53 <tr class="listrow[% loop.count % 1 %]">
55 <input type="hidden" name="vc_bank_info[+].id" value="[% HTML.escape(vbi.id) %]">
56 <input type="hidden" name="vc_bank_info[].name" value="[% HTML.escape(vbi.name) %]">
57 [% HTML.escape(vbi.name) %]
59 <td><input name="vc_bank_info[].iban" size="20" value="[% HTML.escape(vbi.iban) %]"></td>
60 <td><input name="vc_bank_info[].bic" size="20" value="[% HTML.escape(vbi.bic) %]"></td>
61 <td><input name="vc_bank_info[].bank" size="30" value="[% HTML.escape(vbi.bank) %]"></td>
68 3. [% 'Enter the requested execution date or leave empty for the quickest possible execution:' | $T8 %]
72 <th class="listheading">[%- IF is_vendor %][% 'Vendor' | $T8 %][%- ELSE %][%- LxERP.t8('Customer') %][%- END %]</th>
73 <th class="listheading">[% 'Invoice' | $T8 %]</th>
74 <th class="listheading" align="right">[% 'Amount' | $T8 %]</th>
75 <th class="listheading" align="right">[% 'Open amount' | $T8 %]</th>
76 <th class="listheading">[% 'Purpose' | $T8 %]</th>
77 <th class="listheading" align="right">[%- IF is_vendor %][% 'Bank transfer amount' | $T8 %][%- ELSE %][%- LxERP.t8('Bank collection amount') %][%- END %]</th>
78 <th class="listheading">[% 'Execution date' | $T8 %]</th>
81 [%- FOREACH bank_transfer = BANK_TRANSFERS %]
82 <input type="hidden" name="bank_transfers[+].[% arap %]_id" value="[% HTML.escape(bank_transfer.id) %]">
83 <input type="hidden" name="bank_transfers[].vc_id" value="[% HTML.escape(bank_transfer.vc_id) %]">
84 <input type="hidden" name="bank_transfers[].selected" value="1">
86 <tr class="listrow[% loop.count % 2 %]">
88 [%- IF loop.first || (previous_vcname != bank_transfer.vcname) %]
89 <a href="ct.pl?action=edit&db=[% vc %]&id=[% HTML.url(bank_transfer.vc_id) %]&callback=[% HTML.url('sepa.pl?action=bank_transfer_add&vc=' _ vc) %]">
90 [%- GET HTML.escape(bank_transfer.vcname);
91 SET previous_vcname = bank_transfer.vcname; -%]
97 <a href="[% IF bank_transfer.invoice %][% iris %][% ELSE %][% arap %][% END %].pl?action=edit&id=[% HTML.escape(bank_transfer.id) %]">
98 [% HTML.escape(bank_transfer.invnumber) %]
102 <td align="right">[% LxERP.format_amount(bank_transfer.invoice_amount, -2) %]</td>
103 <td align="right">[% LxERP.format_amount(bank_transfer.open_amount, -2) %]</td>
104 <td><input name="bank_transfers[].reference" value="[% HTML.escape(bank_transfer.reference) %]"></td>
105 <td align="right"><input name="bank_transfers[].amount" value="[% LxERP.format_amount(bank_transfer.amount, -2) %]" style="text-align: right"></td>
107 [% L.date_tag('requested_execution_date_'_ loop.count, bank_transfer.requested_execution_date) %]
116 <input type="submit" class="submit" name="action_bank_transfer_create" value="[% 'Create bank transfer' | $T8 %]">
118 <input type="submit" class="submit" name="action_bank_transfer_create" value="[% 'Create bank collection' | $T8 %]">
122 <input type="hidden" name="action" value="dispatcher">
123 <input type="hidden" name="vc" value="[%- HTML.escape(vc) %]">
124 <input type="hidden" name="confirmation" value="1">