Templates werden nicht mehr übersetzt gespeichert.
[kivitendo-erp.git] / templates / webpages / sepa / bank_transfer_add_master.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>
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">[% 'Purpose' | $T8 %]</th>
28      <th class="listheading" align="right">[% 'Bank transfer amount' | $T8 %]</th>
29     </tr>
30
31     [%- FOREACH invoice = INVOICES %]
32      <input type="hidden" name="bank_transfers[+].ap_id" value="[% HTML.escape(invoice.id) %]">
33
34      <tr class="listrow[% loop.count % 2 %]">
35       <td align="center">
36        [%- IF invoice.vendor_bank_info_ok %]
37         <input type="checkbox" name="bank_transfers[].selected" value="1">
38        [%- END %]
39       </td>
40       <td>
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';
48              END; -%]
49         </a>
50        [%- END -%]
51       </td>
52
53       <td>
54        <a href="[% IF invoice.invoice %]ir[% ELSE %]ap[% END %].pl?action=edit&id=[% HTML.escape(invoice.id) %]">
55         [% HTML.escape(invoice.invnumber) %]
56        </a>
57       </td>
58
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>
62       <td align="right">
63        <input name="bank_transfers[].amount" value="[% LxERP.format_amount(invoice.invoice_amount, -2) %]" style="text-align: right">
64       </td>
65      </tr>
66     [%- END %]
67    </table>
68   </p>
69
70   [%- IF show_vendor_bank_info_footnote %]
71    <p>
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 %]
73    </p>
74   [%- END %]
75
76   <p>
77    <input type="submit" class="submit" name="action_bank_transfer_create" value="[% 'Step 2' | $T8 %]">
78   </p>
79
80   <input type="hidden" name="action" value="dispatcher">
81  </form>
82
83  <script type="text/javascript" src="js/jquery.js"></script>
84  <script type="text/javascript">
85   <!--
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);
91         });
92       });
93     });
94     -->
95  </script>
96
97 </body>
98 </html>