6 <p><div class="listtop">[% title %]: [% HTML.escape(export.ids.join(', ')) %]</div></p>
8 <form action="sepa.pl" method="post">
9 <input type="hidden" name="action" value="dispatcher">
14 [%- IF show_post_payments_button %]
15 <th class="listheading" align="center"><input type="checkbox" id="select_all"></th>
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>
27 <th class="listheading" colspan="[% IF show_post_payments_button %]3[% ELSE %]2[% END %]"> </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"> </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="?">
39 <th class="listheading" colspan="4"> </th>
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) %]">
49 [%- UNLESS item.executed %]
50 <input type="checkbox" name="items[].selected" value="1">
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>
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 %]
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="?">
83 [%- IF show_post_payments_button %]
85 <input type="submit" class="submit" name="action_bank_transfer_post_payments" value="[% 'Post payments' | $T8 %]">
88 <script type="text/javascript" src="js/jquery.js"></script>
89 <script type="text/javascript">
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);
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);
106 [%- IF show_post_payments_button %]
107 Calendar.setup({ inputField : "set_all_execution_date",
108 ifFormat : "[% myconfig_jsc_dateformat %]",
110 button : "set_all_execution_date_trigger",
111 onUpdate : set_all_execution_date_fields });
113 [%- FOREACH item = export.items %]
114 [%- IF !item.executed %]
115 Calendar.setup({ inputField : "execution_date_[% loop.count %]",
116 ifFormat : "[% myconfig_jsc_dateformat %]",
118 button : "execution_date_[% loop.count %]_trigger" });
128 <input type="submit" class="submit" name="action_bank_transfer_payment_list_as_pdf" value="[% 'Payment list as PDF' | $T8 %]">
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) %]">