5 <p><div class="listtop">[% title %]: [% HTML.escape(export.ids.join(', ')) %]</div></p>
7 <form action="sepa.pl" method="post">
8 <input type="hidden" name="action" value="dispatcher">
13 [%- IF show_post_payments_button %]
14 <th class="listheading" align="center"><input type="checkbox" id="select_all"></th>
16 <th class="listheading"><translate>Invoice</translate></th>
17 <th class="listheading"><translate>Vendor</translate></th>
18 <th class="listheading" colspan="2"><translate>Source bank account</translate></th>
19 <th class="listheading" colspan="2"><translate>Target bank account</translate></th>
20 <th class="listheading" align="right"><translate>Amount</translate></th>
21 <th class="listheading"><translate>Reference</translate></th>
22 <th class="listheading" align="right"><translate>Requested execution date</translate></th>
23 <th class="listheading" align="right"><translate>Execution date</translate></th>
26 <th class="listheading" colspan="[% IF show_post_payments_button %]3[% ELSE %]2[% END %]"> </th>
27 <th class="listheading"><translate>IBAN</translate></th>
28 <th class="listheading"><translate>BIC</translate></th>
29 <th class="listheading"><translate>IBAN</translate></th>
30 <th class="listheading"><translate>BIC</translate></th>
31 [%- IF show_post_payments_button %]
32 <th class="listheading" colspan="3"> </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="?">
38 <th class="listheading" colspan="4"> </th>
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) %]">
48 [%- UNLESS item.executed %]
49 <input type="checkbox" name="items[].selected" value="1">
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>
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 <translate>not executed</translate>
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="?">
82 [%- IF show_post_payments_button %]
84 <input type="submit" class="submit" name="action_bank_transfer_post_payments" value="<translate>Post payments</translate>">
87 <script type="text/javascript" src="js/jquery.js"></script>
88 <script type="text/javascript">
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);
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);
105 [%- IF show_post_payments_button %]
106 Calendar.setup({ inputField : "set_all_execution_date",
107 ifFormat : "[% myconfig_jsc_dateformat %]",
109 button : "set_all_execution_date_trigger",
110 onUpdate : set_all_execution_date_fields });
112 [%- FOREACH item = export.items %]
113 [%- IF !item.executed %]
114 Calendar.setup({ inputField : "execution_date_[% loop.count %]",
115 ifFormat : "[% myconfig_jsc_dateformat %]",
117 button : "execution_date_[% loop.count %]_trigger" });
127 <input type="submit" class="submit" name="action_bank_transfer_payment_list_as_pdf" value="<translate>Payment list as PDF</translate>">
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) %]">