2 [% USE HTML %][% USE LxERP %]
5 <p><div class="listtop">[% title %]</div></p>
7 <form action="sepa.pl" method="post">
9 [% 'Please select the source bank account for the transfers:' | $T8 %]
11 [%- INCLUDE generic/multibox.html
12 name = 'bank_account.id',
15 label_sub = 'bank_account_label',
22 <th class="listheading" align="center"><input type="checkbox" id="select_all"></th>
23 <th class="listheading">[% 'Vendor' | $T8 %]</th>
24 <th class="listheading">[% 'Invoice' | $T8 %]</th>
25 <th class="listheading" align="right">[% 'Amount' | $T8 %]</th>
26 <th class="listheading" align="right">[% 'Open amount' | $T8 %]</th>
27 <th class="listheading">[% 'Purpose' | $T8 %]</th>
28 <th class="listheading" align="right">[% 'Bank transfer amount' | $T8 %]</th>
31 [%- FOREACH invoice = INVOICES %]
32 <input type="hidden" name="bank_transfers[+].ap_id" value="[% HTML.escape(invoice.id) %]">
34 <tr class="listrow[% loop.count % 2 %]">
36 [%- IF invoice.vendor_bank_info_ok %]
37 <input type="checkbox" name="bank_transfers[].selected" value="1">
41 [%- IF loop.first || (previous_vendorname != invoice.vendorname) %]
42 <a href="ct.pl?action=edit&db=vendor&id=[% HTML.url(invoice.vendor_id) %]&callback=[% HTML.url('sepa.pl?action=bank_transfer_add') %]">
43 [%- GET HTML.escape(invoice.vendorname);
44 SET previous_vendorname = invoice.vendorname;
45 IF !invoice.vendor_bank_info_ok;
46 GET ' <sup>(1)</sup>';
47 SET show_vendor_bank_info_footnote = '1';
54 <a href="[% IF invoice.invoice %]ir[% ELSE %]ap[% END %].pl?action=edit&id=[% HTML.escape(invoice.id) %]">
55 [% HTML.escape(invoice.invnumber) %]
59 <td align="right">[% LxERP.format_amount(invoice.invoice_amount, -2) %]</td>
60 <td align="right">[% LxERP.format_amount(invoice.open_amount, -2) %]</td>
61 <td><input name="bank_transfers[].reference" value="[% HTML.escape(invoice.invnumber) %]"></td>
63 <input name="bank_transfers[].amount" value="[% LxERP.format_amount(invoice.invoice_amount, -2) %]" style="text-align: right">
70 [%- IF show_vendor_bank_info_footnote %]
72 <sup>(1)</sup> [%- 'No bank information has been entered in this vendor\'s master data entry. You cannot create bank transfers unless you enter bank information.' | $T8 %]
77 <input type="submit" class="submit" name="action_bank_transfer_create" value="[% 'Step 2' | $T8 %]">
80 <input type="hidden" name="action" value="dispatcher">
83 <script type="text/javascript" src="js/jquery.js"></script>
84 <script type="text/javascript">
86 $(document).ready(function() {
87 $("#select_all").click(function() {
88 var checked = $(this).attr('checked');
89 $('INPUT[name="bank_transfers[].selected"]').each(function() {
90 $(this).attr('checked', checked);