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