Englische Locales auf den neusten Stand bringen.
[kivitendo-erp.git] / templates / webpages / sepa / bank_transfer_edit_de.html
1 [% USE HTML %]
2 [% USE LxERP %]
3 <body>
4
5  <p><div class="listtop">[% title %]: [% HTML.escape(export.ids.join(', ')) %]</div></p>
6
7  <form action="sepa.pl" method="post">
8   <input type="hidden" name="action" value="dispatcher">
9
10   <p>
11    <table>
12     <tr>
13      [%- IF show_post_payments_button %]
14       <th class="listheading" align="center"><input type="checkbox" id="select_all"></th>
15      [%- END %]
16      <th class="listheading">Rechnung</th>
17      <th class="listheading">Lieferant</th>
18      <th class="listheading" colspan="2">Quellkonto</th>
19      <th class="listheading" colspan="2">Zielkonto</th>
20      <th class="listheading" align="right">Betrag</th>
21      <th class="listheading">Referenz</th>
22      <th class="listheading" align="right">Gewünschtes Ausführungsdatum</th>
23      <th class="listheading" align="right">Ausführungsdatum</th>
24     </tr>
25     <tr>
26      <th class="listheading" colspan="[% IF show_post_payments_button %]3[% ELSE %]2[% END %]">&nbsp;</th>
27      <th class="listheading">IBAN</th>
28      <th class="listheading">BIC</th>
29      <th class="listheading">IBAN</th>
30      <th class="listheading">BIC</th>
31      [%- IF show_post_payments_button %]
32       <th class="listheading" colspan="3">&nbsp;</th>
33       <th class="listheading">
34        <input name="set_all_execution_date" id="set_all_execution_date" size="11">
35        <input type="button" name="set_all_execution_date_trigger" id="set_all_execution_date_trigger" value="?">
36       </th>
37      [%- ELSE %]
38       <th class="listheading" colspan="4">&nbsp;</th>
39      [%- END %]
40     </tr>
41
42     [%- FOREACH item = export.items %]
43      <tr class="listrow[% loop.count % 2 %]">
44       [%- IF show_post_payments_button %]
45        <input type="hidden" name="items[+].id" value="[% HTML.escape(item.id) %]">
46        <input type="hidden" name="items[].sepa_export_id" value="[% HTML.escape(item.sepa_export_id) %]">
47        <td align="center">
48         [%- UNLESS item.executed %]
49         <input type="checkbox" name="items[].selected" value="1">
50         [%- END %]
51        </td>
52       [%- END %]
53       <td>
54        <a href="[% IF item.invoice %]ir[% ELSE %]ap[% END %].pl?action=edit&type=invoice&id=[% HTML.url(item.ap_id) %]">[% HTML.escape(item.invnumber) %]</a>
55       </td>
56       <td>[% HTML.escape(item.vendor_name) %]</td>
57       <td>[% HTML.escape(item.our_iban) %]</td>
58       <td>[% HTML.escape(item.our_bic) %]</td>
59       <td>[% HTML.escape(item.vendor_iban) %]</td>
60       <td>[% HTML.escape(item.vendor_bic) %]</td>
61       <td align="right">[% HTML.escape(LxERP.format_amount(item.amount, 2)) %]</td>
62       <td>[% HTML.escape(item.reference) %]</td>
63       <td align="right">[% HTML.escape(item.requested_execution_date) %]</td>
64       <td align="right" nowrap>
65        [%- IF item.executed %]
66         [% HTML.escape(item.execution_date) %]
67        [%- ELSIF item.export_closed %]
68         nicht ausgeführt
69        [%- ELSE %]
70         <input name="items[].execution_date" id="execution_date_[% loop.count %]" size="11"
71                value="[% IF item.requested_execution_date %][% HTML.escape(item.requested_execution_date) %][% ELSE %][% HTML.escape(current_date) %][% END %]">
72         <input type="button" name="execution_date_[% loop.count %]_trigger" id="execution_date_[% loop.count %]_trigger" value="?">
73        [%- END %]
74       </td>
75      </tr>
76     [%- END %]
77    </table>
78   </p>
79
80   <p><hr></p>
81
82   [%- IF show_post_payments_button %]
83   <p>
84    <input type="submit" class="submit" name="action_bank_transfer_post_payments" value="Zahlungen buchen">
85   </p>
86
87   <script type="text/javascript" src="js/jquery.js"></script>
88   <script type="text/javascript">
89    <!--
90     function set_all_execution_date_fields() {
91       var new_date = $('#set_all_execution_date').attr('value');
92       $('INPUT[name="items[].execution_date"]').each(function() {
93         $(this).attr('value', new_date);
94       });
95     }
96
97     $(document).ready(function() {
98       $("#select_all").click(function() {
99         var checked = $(this).attr('checked');
100         $('INPUT[name="items[].selected"]').each(function() {
101           $(this).attr('checked', checked);
102         });
103       });
104
105       [%- IF show_post_payments_button %]
106        Calendar.setup({ inputField : "set_all_execution_date",
107                         ifFormat   : "[% myconfig_jsc_dateformat %]",
108                         align      : "BL",
109                         button     : "set_all_execution_date_trigger",
110                         onUpdate   : set_all_execution_date_fields });
111
112        [%- FOREACH item = export.items %]
113         [%- IF !item.executed %]
114          Calendar.setup({ inputField : "execution_date_[% loop.count %]",
115                           ifFormat   : "[% myconfig_jsc_dateformat %]",
116                           align      : "BL",
117                           button     : "execution_date_[% loop.count %]_trigger" });
118         [%- END %]
119        [%- END %]
120       [%- END %]
121     });
122      -->
123   </script>
124
125   [%- ELSE %]
126   <p>
127    <input type="submit" class="submit" name="action_bank_transfer_payment_list_as_pdf" value="Zahlungsliste als PDF">
128   </p>
129
130    [%- FOREACH item = export.items %]
131     [%- IF item.executed %]
132      <input type="hidden" name="items[+].id" value="[% HTML.escape(item.id) %]">
133      <input type="hidden" name="items[].export_id" value="[% HTML.escape(item.export_id) %]">
134     [%- END %]
135    [%- END %]
136   [%- END %]
137  </form>
138
139 </body>
140 </html>