SEPA Hinzufügen von Überweisungen um das Infofeld Fälligkeitsdatum erweitert
[kivitendo-erp.git] / templates / webpages / sepa / bank_transfer_add.html
1 [%- USE T8 %]
2 [% USE HTML %][% USE LxERP %]
3 <body>
4
5  <p><div class="listtop">[% title %]</div></p>
6
7  <form action="sepa.pl" method="post">
8   <p>
9    [% 'Please select the source bank account for the transfers:' | $T8 %]
10    <br>
11    [%- INCLUDE generic/multibox.html
12          name      = 'bank_account.id',
13          DATA      = BANK_ACCOUNTS,
14          id_key    = 'id',
15          label_sub = 'bank_account_label',
16    -%]
17   </p>
18
19   <p>
20    <table border="0">
21     <tr>
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>
30     </tr>
31
32     [%- FOREACH invoice = INVOICES %]
33      <input type="hidden" name="bank_transfers[+].ap_id" value="[% HTML.escape(invoice.id) %]">
34
35      <tr class="listrow[% loop.count % 2 %]">
36       <td align="center">
37        [%- IF invoice.vendor_bank_info_ok %]
38         <input type="checkbox" name="bank_transfers[].selected" value="1">
39        [%- END %]
40       </td>
41       <td>
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';
49              END; -%]
50         </a>
51        [%- END -%]
52       </td>
53
54       <td>
55        <a href="[% IF invoice.invoice %]ir[% ELSE %]ap[% END %].pl?action=edit&id=[% HTML.escape(invoice.id) %]">
56         [% HTML.escape(invoice.invnumber) %]
57        </a>
58       </td>
59
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>
64       <td align="right">
65        <input name="bank_transfers[].amount" value="[% LxERP.format_amount(invoice.invoice_amount, -2) %]" style="text-align: right">
66       </td>
67      </tr>
68     [%- END %]
69    </table>
70   </p>
71
72   [%- IF show_vendor_bank_info_footnote %]
73    <p>
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 %]
75    </p>
76   [%- END %]
77
78   <p>
79    <input type="submit" class="submit" name="action_bank_transfer_create" value="[% 'Step 2' | $T8 %]">
80   </p>
81
82   <input type="hidden" name="action" value="dispatcher">
83  </form>
84
85  <script type="text/javascript" src="js/jquery.js"></script>
86  <script type="text/javascript">
87   <!--
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);
93         });
94       });
95     });
96     -->
97  </script>
98
99 </body>
100 </html>