Änderungen für den SEPA-Export
[kivitendo-erp.git] / templates / webpages / sepa / bank_transfer_add_de.html
1 [% USE HTML %][% USE LxERP %]
2 <body>
3
4  <p><div class="listtop">[% title %]</div></p>
5
6  <form action="sepa.pl" method="post">
7   <p>
8    Bitte wählen Sie das Bankkonto als Quelle für die Überweisungen aus:
9    <br>
10    [%- INCLUDE generic/multibox.html
11          name      = 'bank_account.id',
12          DATA      = BANK_ACCOUNTS,
13          id_key    = 'id',
14          label_sub = 'bank_account_label',
15    -%]
16   </p>
17
18   <p>
19    <table>
20     <tr>
21      <th class="listheading" align="center"><input type="checkbox" id="select_all"></th>
22      <th class="listheading">Lieferant</th>
23      <th class="listheading">Rechnung</th>
24      <th class="listheading" align="right">Betrag</th>
25      <th class="listheading" align="right">offener Betrag</th>
26      <th class="listheading">Verwendungszweck</th>
27      <th class="listheading" align="right">Überweisungssumme</th>
28     </tr>
29
30     [%- FOREACH invoice = INVOICES %]
31      <input type="hidden" name="bank_transfers[+].ap_id" value="[% HTML.escape(invoice.id) %]">
32
33      <tr class="listrow[% loop.count % 2 %]">
34       <td align="center">
35        [%- IF invoice.vendor_bank_info_ok %]
36         <input type="checkbox" name="bank_transfers[].selected" value="1">
37        [%- END %]
38       </td>
39       <td>
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';
47              END; -%]
48         </a>
49        [%- END -%]
50       </td>
51
52       <td>
53        <a href="[% IF invoice.invoice %]ir[% ELSE %]ap[% END %].pl?action=edit&id=[% HTML.escape(invoice.id) %]">
54         [% HTML.escape(invoice.invnumber) %]
55        </a>
56       </td>
57
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>
61       <td align="right">
62        <input name="bank_transfers[].amount" value="[% LxERP.format_amount(invoice.invoice_amount, -2) %]" style="text-align: right">
63       </td>
64      </tr>
65     [%- END %]
66    </table>
67   </p>
68
69   [%- IF show_vendor_bank_info_footnote %]
70    <p>
71     <sup>(1)</sup> Für diesen Lieferanten wurden in seinen Stammdaten keine Kontodaten hinterlegt. Solange dies nicht geschehen ist, können Sie keine Überweisungen für den Lieferanten anlegen.
72    </p>
73   [%- END %]
74
75   <p>
76    <input type="submit" class="submit" name="action_bank_transfer_create" value="Schritt 2">
77   </p>
78
79   <input type="hidden" name="action" value="dispatcher">
80  </form>
81
82  <script type="text/javascript" src="js/jquery.js"></script>
83  <script type="text/javascript">
84   <!--
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);
90         });
91       });
92     });
93     -->
94  </script>
95
96 </body>
97 </html>