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" align="right">[% 'Due Date' | $T8 %]</th>
28 <th class="listheading">[% 'Purpose' | $T8 %]</th>
29 <th class="listheading" align="right">[% 'Bank transfer amount' | $T8 %]</th>
32 [%- FOREACH invoice = INVOICES %]
33 <input type="hidden" name="bank_transfers[+].ap_id" value="[% HTML.escape(invoice.id) %]">
35 <tr class="listrow[% loop.count % 2 %]">
37 [%- IF invoice.vendor_bank_info_ok %]
38 <input type="checkbox" name="bank_transfers[].selected" value="1">
42 [%- IF loop.first || (previous_vendorname != invoice.vendorname) %]
43 <a href="ct.pl?action=edit&db=vendor&id=[% HTML.url(invoice.vendor_id) %]&callback=[% HTML.url('sepa.pl?action=bank_transfer_add') %]">
44 [%- GET HTML.escape(invoice.vendorname);
45 SET previous_vendorname = invoice.vendorname;
46 IF !invoice.vendor_bank_info_ok;
47 GET ' <sup>(1)</sup>';
48 SET show_vendor_bank_info_footnote = '1';
55 <a href="[% IF invoice.invoice %]ir[% ELSE %]ap[% END %].pl?action=edit&id=[% HTML.escape(invoice.id) %]">
56 [% HTML.escape(invoice.invnumber) %]
60 <td align="right">[% LxERP.format_amount(invoice.invoice_amount, -2) %]</td>
61 <td align="right">[% LxERP.format_amount(invoice.open_amount, -2) %]</td>
62 <td align="right">[% invoice.duedate %]</td>
63 <td><input name="bank_transfers[].reference" value="[% HTML.escape(invoice.invnumber) %]"></td>
65 <input name="bank_transfers[].amount" value="[% LxERP.format_amount(invoice.invoice_amount, -2) %]" style="text-align: right">
72 [%- IF show_vendor_bank_info_footnote %]
74 <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 %]
79 <input type="submit" class="submit" name="action_bank_transfer_create" value="[% 'Step 2' | $T8 %]">
82 <input type="hidden" name="action" value="dispatcher">
85 <script type="text/javascript" src="js/jquery.js"></script>
86 <script type="text/javascript">
88 $(document).ready(function() {
89 $("#select_all").click(function() {
90 var checked = $(this).attr('checked');
91 $('INPUT[name="bank_transfers[].selected"]').each(function() {
92 $(this).attr('checked', checked);