Revision 660a8538
Von Hans P. Schlaepfer vor etwa 4 Jahren hinzugefügt
templates/webpages/sepa/bank_transfer_edit.html | ||
---|---|---|
[% USE L %]
|
||
|
||
[% IF vc == 'vendor' %]
|
||
[% SET is_vendor = 1 %]
|
||
[% SET arap = 'ap' %]
|
||
[% SET iris = 'ir' %]
|
||
[% SET is_vendor = 1 %]
|
||
[% SET arap = 'ap' %]
|
||
[% SET iris = 'ir' %]
|
||
[% ELSE %]
|
||
[% SET is_vendor = 0 %]
|
||
[% SET arap = 'ar' %]
|
||
[% SET iris = 'is' %]
|
||
[%- END %]
|
||
[% SET is_vendor = 0 %]
|
||
[% SET arap = 'ar' %]
|
||
[% SET iris = 'is' %]
|
||
[% END %]
|
||
|
||
<h1>[% title %]: [% HTML.escape(export.ids.join(', ')) %]</h1>
|
||
|
||
<form action="sepa.pl" method="post" id="form">
|
||
<p>
|
||
<table>
|
||
<form action="sepa.pl" method="post" id="form">
|
||
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th class="listheading" align="center"><input type="checkbox" id="select_all"></th>
|
||
<th class="listheading">[% 'Invoice' | $T8 %]</th>
|
||
<th class="listheading">[%- IF is_vendor %][% 'Vendor' | $T8 %][%- ELSE %][%- LxERP.t8('Customer') %][%- END %]</th>
|
||
[%- IF is_vendor %]
|
||
<th class="listheading" colspan="2">[% 'Source bank account' | $T8 %]</th>
|
||
<th class="listheading" colspan="2">[% 'Target bank account' | $T8 %]</th>
|
||
[%- ELSE %]
|
||
<th class="listheading" colspan="2">[% 'Target bank account' | $T8 %]</th>
|
||
<th class="listheading" colspan="2">[% 'Source bank account' | $T8 %]</th>
|
||
[%- END %]
|
||
<th class="listheading" align="right">[% 'Amount' | $T8 %]</th>
|
||
<th class="listheading" align="right">[% 'Skonto amount' | $T8 %]</th>
|
||
<th class="listheading" align="right">[% 'Payment type' | $T8 %]</th>
|
||
[% IF vc == 'customer' %]
|
||
<th class="listheading" align="right">[% 'Mandator ID' | $T8 %]</th>
|
||
[%- END %]
|
||
<th class="listheading">[% 'Reference' | $T8 %]</th>
|
||
<th class="listheading" align="right">[% 'Requested execution date' | $T8 %]</th>
|
||
<th class="listheading" align="right">[% 'Execution date' | $T8 %]</th>
|
||
<th><input type="checkbox" id="select_all"></th>
|
||
<th>[% 'Invoice' | $T8 %]</th>
|
||
<th>[% IF is_vendor %][% 'Vendor' | $T8 %][% ELSE %][% LxERP.t8('Customer') %][% END %]</th>
|
||
[% IF is_vendor %]
|
||
<th colspan="2">[% 'Source bank account' | $T8 %]</th>
|
||
<th colspan="2">[% 'Target bank account' | $T8 %]</th>
|
||
[% ELSE %]
|
||
<th colspan="2">[% 'Target bank account' | $T8 %]</th>
|
||
<th colspan="2">[% 'Source bank account' | $T8 %]</th>
|
||
[% END %]
|
||
<th>[% 'Amount' | $T8 %]</th>
|
||
<th>[% 'Skonto amount' | $T8 %]</th>
|
||
<th>[% 'Payment type' | $T8 %]</th>
|
||
[% IF vc == 'customer' %]
|
||
<th>[% 'Mandator ID' | $T8 %]</th>
|
||
[% END %]
|
||
<th>[% 'Reference' | $T8 %]</th>
|
||
<th>[% 'Requested execution date' | $T8 %]</th>
|
||
<th>[% 'Execution date' | $T8 %]</th>
|
||
</tr>
|
||
<tr>
|
||
<th class="listheading" colspan="3"> </th>
|
||
<th class="listheading">[% 'IBAN' | $T8 %]</th>
|
||
<th class="listheading">[% 'BIC' | $T8 %]</th>
|
||
<th class="listheading">[% 'IBAN' | $T8 %]</th>
|
||
<th class="listheading">[% 'BIC' | $T8 %]</th>
|
||
[%- IF show_post_payments_button %]
|
||
<th class="listheading" colspan="[% IF vc == 'customer' %]6[% ELSE %]5[% END %]"> </th>
|
||
<th class="listheading">
|
||
[% L.date_tag('set_all_execution_date', '', onchange='set_all_execution_date_fields(this);') %]
|
||
</th>
|
||
[%- ELSE %]
|
||
<th class="listheading" colspan="[% IF vc == 'customer' %]7[% ELSE %]6[% END %]"> </th>
|
||
[%- END %]
|
||
<th colspan="3"> </th>
|
||
<th>[% 'IBAN' | $T8 %]</th>
|
||
<th>[% 'BIC' | $T8 %]</th>
|
||
<th>[% 'IBAN' | $T8 %]</th>
|
||
<th>[% 'BIC' | $T8 %]</th>
|
||
[% IF show_post_payments_button %]
|
||
<th colspan="[% IF vc == 'customer' %]6[% ELSE %]5[% END %]"> </th>
|
||
<th> [% L.date_tag('set_all_execution_date', '', onchange='set_all_execution_date_fields(this);') %] </th>
|
||
[% ELSE %]
|
||
<th colspan="[% IF vc == 'customer' %]7[% ELSE %]6[% END %]"> </th>
|
||
[% END %]
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
[% FOREACH item = export.items %]
|
||
<tr>
|
||
<td>
|
||
[% IF (show_post_payments_button && !item.executed) || (!show_post_payments_button && item.executed) %]
|
||
[% L.hidden_tag("items[+].id", item.id) %]
|
||
[% L.hidden_tag("items[].sepa_export_id", item.sepa_export_id) %]
|
||
[% L.checkbox_tag("ids[]", value=item.id) %]
|
||
[% END %]
|
||
</td>
|
||
<td><a href="[% IF item.invoice %][% iris %][% ELSE %][% arap %][% END %].pl?action=edit&type=invoice&id=[% IF is_vendor %][% HTML.url(item.ap_id) %][% ELSE %][% HTML.url(item.ar_id) %][% END %]">[% HTML.escape(item.invnumber) %]</a></td>
|
||
<td>[% HTML.escape(item.vc_name) %]</td>
|
||
<td>[% HTML.escape(item.our_iban) %]</td>
|
||
<td>[% HTML.escape(item.our_bic) %]</td>
|
||
<td>[% HTML.escape(item.vc_iban) %]</td>
|
||
<td>[% HTML.escape(item.vc_bic) %]</td>
|
||
<td>[% HTML.escape(LxERP.format_amount(item.amount, 2)) %]</td>
|
||
<td>[% HTML.escape(LxERP.format_amount(item.skonto_amount, 2)) %]</td>
|
||
<td>[% item.payment_type | $T8 %]</td>
|
||
[% IF vc == 'customer' %]
|
||
<td>[% HTML.escape(item.mandator_id) %]</td>
|
||
[% END %]
|
||
<td>[% HTML.escape(item.reference) %]</td>
|
||
<td>[% HTML.escape(item.requested_execution_date) %]</td>
|
||
<td>
|
||
[% IF item.executed %]
|
||
[% HTML.escape(item.execution_date) %]
|
||
[% ELSIF item.export_closed %]
|
||
[% 'not executed' | $T8 %]
|
||
[% ELSE %]
|
||
[% L.date_tag('items[].execution_date', item.requested_execution_date || current_date) %]
|
||
[% END %]
|
||
</td>
|
||
</tr>
|
||
[% END %]
|
||
</tbody>
|
||
</table>
|
||
|
||
[%- FOREACH item = export.items %]
|
||
<tr class="listrow">
|
||
<td align="center">
|
||
[%- IF (show_post_payments_button && !item.executed) || (!show_post_payments_button && item.executed) %]
|
||
[% L.hidden_tag("items[+].id", item.id) %]
|
||
[% L.hidden_tag("items[].sepa_export_id", item.sepa_export_id) %]
|
||
[% L.checkbox_tag("ids[]", value=item.id) %]
|
||
[%- END %]
|
||
</td>
|
||
<td>
|
||
<a href="[% IF item.invoice %][% iris %][% ELSE %][% arap %][% END %].pl?action=edit&type=invoice&id=[% IF is_vendor %][% HTML.url(item.ap_id) %][% ELSE %][% HTML.url(item.ar_id) %][% END %]">[% HTML.escape(item.invnumber) %]</a>
|
||
</td>
|
||
<td>[% HTML.escape(item.vc_name) %]</td>
|
||
<td>[% HTML.escape(item.our_iban) %]</td>
|
||
<td>[% HTML.escape(item.our_bic) %]</td>
|
||
<td>[% HTML.escape(item.vc_iban) %]</td>
|
||
<td>[% HTML.escape(item.vc_bic) %]</td>
|
||
<td align="right">[% HTML.escape(LxERP.format_amount(item.amount, 2)) %]</td>
|
||
<td align="right">[% HTML.escape(LxERP.format_amount(item.skonto_amount, 2)) %]</td>
|
||
<td align="right">[% item.payment_type | $T8 %]</td>
|
||
[% IF vc == 'customer' %]
|
||
<td>[% HTML.escape(item.mandator_id) %]</td>
|
||
[%- END %]
|
||
<td>[% HTML.escape(item.reference) %]</td>
|
||
<td align="right">[% HTML.escape(item.requested_execution_date) %]</td>
|
||
<td align="right" nowrap>
|
||
[%- IF item.executed %]
|
||
[% HTML.escape(item.execution_date) %]
|
||
[%- ELSIF item.export_closed %]
|
||
[% 'not executed' | $T8 %]
|
||
[%- ELSE %]
|
||
[% L.date_tag('items[].execution_date', item.requested_execution_date || current_date) %]
|
||
[%- END %]
|
||
</td>
|
||
</tr>
|
||
[%- END %]
|
||
</table>
|
||
</p>
|
||
<script type="text/javascript">
|
||
function set_all_execution_date_fields(input) {
|
||
var new_date = $(input).val();
|
||
$('INPUT[name="items[].execution_date"]').each(function() {
|
||
$(this).val(new_date);
|
||
});
|
||
}
|
||
|
||
<script type="text/javascript">
|
||
<!--
|
||
function set_all_execution_date_fields(input) {
|
||
var new_date = $(input).val();
|
||
$('INPUT[name="items[].execution_date"]').each(function() {
|
||
$(this).val(new_date);
|
||
});
|
||
}
|
||
$(function() {
|
||
$("#select_all").checkall('INPUT[name="ids[]"]');
|
||
});
|
||
</script>
|
||
|
||
$(function() {
|
||
$("#select_all").checkall('INPUT[name="ids[]"]');
|
||
});
|
||
-->
|
||
</script>
|
||
<input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
|
||
|
||
<input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
|
||
</form>
|
||
</form>
|
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/sepa/bank_transfer_edit.html