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>
50 [% IF vc == 'customer' %]
51 <th class="listheading">[% 'Mandator ID' | $T8 %]</th>
55 [%- FOREACH vbi = VC_BANK_INFO %]
56 <tr class="listrow[% loop.count % 1 %]">
58 <input type="hidden" name="vc_bank_info[+].id" value="[% HTML.escape(vbi.id) %]">
59 <input type="hidden" name="vc_bank_info[].name" value="[% HTML.escape(vbi.name) %]">
60 [% HTML.escape(vbi.name) %]
62 <td><input name="vc_bank_info[].iban" size="34" value="[% HTML.escape(vbi.iban.substr(0, 34)) %]" maxlength="34"></td>
63 <td><input name="vc_bank_info[].bic" size="20" value="[% HTML.escape(vbi.bic.substr(0, 20)) %]" maxlength="20"></td>
64 <td><input name="vc_bank_info[].bank" size="30" value="[% HTML.escape(vbi.bank) %]"></td>
65 [% IF vc == 'customer' %]
66 <td><input name="vc_bank_info[].mandator_id" size="30" value="[% HTML.escape(vbi.mandator_id) %]"></td>
74 3. [% 'Enter the requested execution date or leave empty for the quickest possible execution:' | $T8 %]
78 <th class="listheading">[%- IF is_vendor %][% 'Vendor' | $T8 %][%- ELSE %][%- LxERP.t8('Customer') %][%- END %]</th>
79 <th class="listheading">[% 'Invoice' | $T8 %]</th>
80 <th class="listheading" align="right">[% 'Amount' | $T8 %]</th>
81 <th class="listheading" align="right">[% 'Open amount' | $T8 %]</th>
82 <th class="listheading">[% 'Purpose' | $T8 %]</th>
83 <th class="listheading" align="right">[%- IF is_vendor %][% 'Bank transfer amount' | $T8 %][%- ELSE %][%- LxERP.t8('Bank collection amount') %][%- END %]</th>
84 <th class="listheading">[% 'Execution date' | $T8 %]</th>
87 [%- FOREACH bank_transfer = BANK_TRANSFERS %]
88 <input type="hidden" name="bank_transfers[+].[% arap %]_id" value="[% HTML.escape(bank_transfer.id) %]">
89 <input type="hidden" name="bank_transfers[].vc_id" value="[% HTML.escape(bank_transfer.vc_id) %]">
90 <input type="hidden" name="bank_transfers[].selected" value="1">
92 <tr class="listrow[% loop.count % 2 %]">
94 [%- IF loop.first || (previous_vcname != bank_transfer.vcname) %]
95 <a href="controller.pl?action=CustomerVendor/edit&db=[% vc %]&id=[% HTML.url(bank_transfer.vc_id) %]&callback=[% HTML.url('sepa.pl?action=bank_transfer_add&vc=' _ vc) %]">
96 [%- GET HTML.escape(bank_transfer.vcname);
97 SET previous_vcname = bank_transfer.vcname; -%]
103 <a href="[% IF bank_transfer.invoice %][% iris %][% ELSE %][% arap %][% END %].pl?action=edit&id=[% HTML.escape(bank_transfer.id) %]">
104 [% HTML.escape(bank_transfer.invnumber) %]
108 <td align="right">[% LxERP.format_amount(bank_transfer.invoice_amount, -2) %]</td>
109 <td align="right">[% LxERP.format_amount(bank_transfer.open_amount, -2) %]</td>
111 <input name="bank_transfers[].reference" value="[% HTML.escape(bank_transfer.reference.substr(0, 140)) %]" size="60" maxlength="140">
113 <td align="right"><input name="bank_transfers[].amount" value="[% LxERP.format_amount(bank_transfer.amount, -2) %]" style="text-align: right" size="12"></td>
115 [% L.date_tag('bank_transfers[].requested_execution_date', bank_transfer.requested_execution_date) %]
123 [% 'Sum open amount' | $T8 %]: [% LxERP.format_amount(total_trans, -2) %]
128 <input type="submit" class="submit" name="action_bank_transfer_create" value="[% 'Create bank transfer' | $T8 %]">
130 <input type="submit" class="submit" name="action_bank_transfer_create" value="[% 'Create bank collection' | $T8 %]">
134 <input type="hidden" name="action" value="dispatcher">
135 <input type="hidden" name="vc" value="[%- HTML.escape(vc) %]">
136 <input type="hidden" name="confirmation" value="1">