1 [% USE HTML %][% USE LxERP %]
4 <p><div class="listtop">[% title %]</div></p>
6 <form action="sepa.pl" method="post">
8 Please select the source bank account for the transfers:
10 [%- INCLUDE generic/multibox.html
11 name = 'bank_account.id',
14 label_sub = 'bank_account_label',
21 <th class="listheading" align="center"><input type="checkbox" id="select_all"></th>
22 <th class="listheading">Vendor</th>
23 <th class="listheading">Invoice</th>
24 <th class="listheading" align="right">Amount</th>
25 <th class="listheading" align="right">Open amount</th>
26 <th class="listheading">Purpose</th>
27 <th class="listheading" align="right">Bank transfer amount</th>
30 [%- FOREACH invoice = INVOICES %]
31 <input type="hidden" name="bank_transfers[+].ap_id" value="[% HTML.escape(invoice.id) %]">
33 <tr class="listrow[% loop.count % 2 %]">
35 [%- IF invoice.vendor_bank_info_ok %]
36 <input type="checkbox" name="bank_transfers[].selected" value="1">
40 [%- IF loop.first || (previous_vendorname != invoice.vendorname) %]
41 <a href="ct.pl?action=edit&db=vendor&id=[% HTML.url(invoice.vendor_id) %]&callback=[% HTML.url('sepa.pl?action=bank_transfer_add') %]">
42 [%- GET HTML.escape(invoice.vendorname);
43 SET previous_vendorname = invoice.vendorname;
44 IF !invoice.vendor_bank_info_ok;
45 GET ' <sup>(1)</sup>';
46 SET show_vendor_bank_info_footnote = '1';
53 <a href="[% IF invoice.invoice %]ir[% ELSE %]ap[% END %].pl?action=edit&id=[% HTML.escape(invoice.id) %]">
54 [% HTML.escape(invoice.invnumber) %]
58 <td align="right">[% LxERP.format_amount(invoice.invoice_amount, -2) %]</td>
59 <td align="right">[% LxERP.format_amount(invoice.open_amount, -2) %]</td>
60 <td><input name="bank_transfers[].reference" value="[% HTML.escape(invoice.invnumber) %]"></td>
62 <input name="bank_transfers[].amount" value="[% LxERP.format_amount(invoice.invoice_amount, -2) %]" style="text-align: right">
69 [%- IF show_vendor_bank_info_footnote %]
71 <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.
76 <input type="submit" class="submit" name="action_bank_transfer_create" value="Step 2">
79 <input type="hidden" name="action" value="dispatcher">
82 <script type="text/javascript" src="js/jquery.js"></script>
83 <script type="text/javascript">
85 $(document).ready(function() {
86 $("#select_all").click(function() {
87 var checked = $(this).attr('checked');
88 $('INPUT[name="bank_transfers[].selected"]').each(function() {
89 $(this).attr('checked', checked);