Revision aadea6e2
Von Hans P. Schlaepfer vor fast 4 Jahren hinzugefügt
templates/webpages/sepa/bank_transfer_add.html | ||
---|---|---|
4 | 4 |
[% USE LxERP %] |
5 | 5 |
|
6 | 6 |
[% IF vc == 'vendor' %] |
7 |
[% SET is_vendor = 1 %] |
|
8 |
[% SET arap = 'ap' %] |
|
9 |
[% SET iris = 'ir' %] |
|
7 |
[% SET is_vendor = 1 %]
|
|
8 |
[% SET arap = 'ap' %]
|
|
9 |
[% SET iris = 'ir' %]
|
|
10 | 10 |
[% ELSE %] |
11 |
[% SET is_vendor = 0 %] |
|
12 |
[% SET arap = 'ar' %] |
|
13 |
[% SET iris = 'is' %] |
|
14 |
[%- END %]
|
|
11 |
[% SET is_vendor = 0 %]
|
|
12 |
[% SET arap = 'ar' %]
|
|
13 |
[% SET iris = 'is' %]
|
|
14 |
[% END %] |
|
15 | 15 |
|
16 |
<p><div class="listtop">[% title %]</div></p>
|
|
16 |
<h1>[% title %]</h1>
|
|
17 | 17 |
|
18 |
<form action="sepa.pl" method="post" id="form"> |
|
19 |
<p> |
|
20 |
[%- IF is_vendor %] |
|
18 |
<form action="sepa.pl" method="post" id="form"> |
|
19 |
<div class="wrapper"> |
|
20 |
|
|
21 |
<div class="select-item control-panel"> |
|
22 |
<span class="label above"> |
|
23 |
[% IF is_vendor %] |
|
21 | 24 |
[% 'Please select the source bank account for the transfers:' | $T8 %] |
22 |
[%- ELSE %]
|
|
25 |
[% ELSE %]
|
|
23 | 26 |
[% 'Please select the destination bank account for the collections:' | $T8 %] |
24 |
[%- END %]
|
|
25 |
<br>
|
|
26 |
[% L.select_tag('bank_account',
|
|
27 |
BANK_ACCOUNTS,
|
|
28 |
title_key='displayable_name',
|
|
29 |
with_empty=0,
|
|
30 |
style='width:450px',
|
|
31 |
) %]
|
|
32 |
</p>
|
|
27 |
[% END %]</span><br>
|
|
28 |
[% L.select_tag('bank_account',
|
|
29 |
BANK_ACCOUNTS,
|
|
30 |
title_key='displayable_name',
|
|
31 |
with_empty=0,
|
|
32 |
class='wi-wide',
|
|
33 |
) %]
|
|
34 |
</div><!-- /.select-item -->
|
|
35 |
</div><!-- /.wrapper -->
|
|
33 | 36 |
|
34 |
<p>
|
|
35 |
<table border="0">
|
|
37 |
<table class="tbl-list">
|
|
38 |
<thead>
|
|
36 | 39 |
<tr> |
37 |
<th class="listheading" align="center"><input type="checkbox" id="select_all"></th>
|
|
38 |
<th class="listheading">[% IF is_vendor %][% 'Vendor' | $T8 %][%- ELSE %][%- LxERP.t8('Customer') %][%- END %]</th>
|
|
39 |
<th class="listheading">[% 'Invoice' | $T8 %]</th>
|
|
40 |
<th class="listheading" align="right">[% 'Amount' | $T8 %]</th>
|
|
41 |
<th class="listheading" align="right">[% 'Open amount' | $T8 %]</th>
|
|
42 |
<th class="listheading" align="right">[% 'Invoice Date' | $T8 %]</th>
|
|
43 |
<th class="listheading" align="right">[% 'Due Date' | $T8 %]</th>
|
|
44 |
<th class="listheading">[% 'Purpose' | $T8 %]</th>
|
|
45 |
<th class="listheading" align="right">[% 'Bank transfer amount' | $T8 %]</th>
|
|
46 |
<th class="listheading" align="right">[% 'Payment type' | $T8 %]</th>
|
|
47 |
<th class="listheading" align="right">[% 'Skonto information' | $T8 %]</th>
|
|
40 |
<th><input type="checkbox" id="select_all"></th>
|
|
41 |
<th>[% IF is_vendor %][% 'Vendor' | $T8 %][% ELSE %][% LxERP.t8('Customer') %][% END %]</th>
|
|
42 |
<th>[% 'Invoice' | $T8 %]</th>
|
|
43 |
<th>[% 'Amount' | $T8 %]</th>
|
|
44 |
<th>[% 'Open amount' | $T8 %]</th>
|
|
45 |
<th>[% 'Invoice Date' | $T8 %]</th>
|
|
46 |
<th>[% 'Due Date' | $T8 %]</th>
|
|
47 |
<th>[% 'Purpose' | $T8 %]</th>
|
|
48 |
<th>[% 'Bank transfer amount' | $T8 %]</th>
|
|
49 |
<th>[% 'Payment type' | $T8 %]</th>
|
|
50 |
<th>[% 'Skonto information' | $T8 %]</th>
|
|
48 | 51 |
</tr> |
52 |
</thead> |
|
53 |
<tbody> |
|
54 |
[% FOREACH invoice = INVOICES %] |
|
55 |
<tr[% IF !invoice.vc_bank_info_ok && invoice.checked %] class="listrow_error"[% END %]> |
|
56 |
<td> |
|
57 |
<input type="hidden" name="bank_transfers[+].[% arap %]_id" value="[% HTML.escape(invoice.id) %]"> |
|
58 |
<input type="hidden" id="amount_less_skonto_[% loop.count %]" name="amount_less_skonto_[% loop.count %]" value="[% LxERP.format_amount(invoice.amount_less_skonto, 2) %]"> |
|
59 |
<input type="hidden" id="invoice_open_amount_[% loop.count %]" name="invoice_open_amount_[% loop.count %]" value="[% LxERP.format_amount(invoice.open_amount - invoice.open_sepa_transfer_amount, 2) %]"> |
|
60 |
<input type="hidden" id="skonto_amount_[% loop.count %]" name="skonto_amount_[% loop.count %]" value="[% LxERP.format_amount(invoice.skonto_amount, 2) %]"> |
|
61 |
[% IF invoice.vc_bank_info_ok %] |
|
62 |
[% L.checkbox_tag("ids[]", value=invoice.id, checked=invoice.checked) %] |
|
63 |
[% END %] |
|
64 |
</td> |
|
65 |
<td> |
|
66 |
[% IF loop.first || (previous_vcname != invoice.vcname) %] |
|
67 |
<a href="controller.pl?action=CustomerVendor/edit&db=[% vc %]&id=[% HTML.url(invoice.vc_id) %]&callback=[% HTML.url('sepa.pl?action=bank_transfer_add&vc=' _ vc) %]"> |
|
68 |
[% GET HTML.escape(invoice.vcname); |
|
69 |
SET previous_vcname = invoice.vcname; |
|
70 |
IF !invoice.vc_bank_info_ok; |
|
71 |
IF invoice.checked; |
|
72 |
GET ' <sup>(2)</sup>'; |
|
73 |
ELSE; |
|
74 |
GET ' <sup>(1)</sup>'; |
|
75 |
END; |
|
76 |
SET show_vc_bank_info_footnote = '1'; |
|
77 |
END; %] |
|
78 |
</a> |
|
79 |
[% END %] |
|
80 |
</td> |
|
81 |
<td> |
|
82 |
<a href="[% IF invoice.invoice %][% iris %][% ELSE %][% arap %][% END %].pl?action=edit&id=[% HTML.escape(invoice.id) %]"> |
|
83 |
[% HTML.escape(invoice.invnumber) %] |
|
84 |
</a> |
|
85 |
</td> |
|
86 |
<td>[% LxERP.format_amount(invoice.invoice_amount-invoice.open_sepa_transfer_amount, 2) %]</td> |
|
87 |
<td>[% LxERP.format_amount(invoice.open_amount-invoice.open_sepa_transfer_amount, 2) %]</td> |
|
88 |
<td>[% invoice.transdate %]</td> |
|
89 |
<td>[% invoice.duedate %]</td> |
|
90 |
<td> |
|
91 |
[% IF INSTANCE_CONF.get_sepa_reference_add_vc_vc_id %] |
|
92 |
[% SET reference = invoice.reference_prefix _ invoice.invnumber _ invoice.reference_prefix_vc _ invoice.vc_vc_id %] |
|
93 |
[% ELSE %] |
|
94 |
[% SET reference = invoice.reference_prefix _ invoice.invnumber %] |
|
95 |
[% END %] |
|
96 |
<input type="text" name="bank_transfers[].reference" value="[% HTML.escape(reference.substr(0, 140)) %]" maxlength="140" size="30"> |
|
97 |
</td> |
|
98 |
<td> |
|
99 |
<input type="text" id=[% loop.count %] name="bank_transfers[].amount" id="amount_[% loop.count %]" value="[% LxERP.format_amount(invoice.invoice_amount_suggestion, 2) %]" style="text-align: right" size="12"> |
|
100 |
</td> |
|
101 |
<td> |
|
102 |
[% L.select_tag('bank_transfers[].payment_type', invoice.payment_select_options, value_key => 'payment_type', title_key => 'display', id => 'payment_type_' _ loop.count, class => 'type_target' ) %] |
|
103 |
</td> |
|
104 |
<td[% IF invoice.within_skonto_period %] class="highlight"[% END %]> |
|
105 |
[% IF invoice.skonto_amount %] |
|
106 |
[% LxERP.format_amount(invoice.percent_skonto, 2) %] % = [% LxERP.format_amount(invoice.skonto_amount, 2) %] € bis [% invoice.skonto_date %] |
|
107 |
[% END %] |
|
108 |
</td> |
|
109 |
</tr> |
|
110 |
[% END %] |
|
111 |
</tbody> |
|
112 |
</table> |
|
49 | 113 |
|
50 |
[%- FOREACH invoice = INVOICES %] |
|
51 |
<input type="hidden" name="bank_transfers[+].[% arap %]_id" value="[% HTML.escape(invoice.id) %]"> |
|
52 |
<input type="hidden" id="amount_less_skonto_[% loop.count %]" name="amount_less_skonto_[% loop.count %]" value="[% LxERP.format_amount(invoice.amount_less_skonto, 2) %]"> |
|
53 |
<input type="hidden" id="invoice_open_amount_[% loop.count %]" name="invoice_open_amount_[% loop.count %]" value="[% LxERP.format_amount(invoice.open_amount - invoice.open_sepa_transfer_amount, 2) %]"> |
|
54 |
<input type="hidden" id="skonto_amount_[% loop.count %]" name="skonto_amount_[% loop.count %]" value="[% LxERP.format_amount(invoice.skonto_amount, 2) %]"> |
|
55 |
|
|
56 |
|
|
57 |
<tr class="listrow[% IF !invoice.vc_bank_info_ok && invoice.checked %]_error[% END %]"> |
|
58 |
<td align="center"> |
|
59 |
[%- IF invoice.vc_bank_info_ok %] |
|
60 |
[% L.checkbox_tag("ids[]", value=invoice.id, checked=invoice.checked) %] |
|
61 |
[%- END %] |
|
62 |
</td> |
|
63 |
<td> |
|
64 |
[%- IF loop.first || (previous_vcname != invoice.vcname) %] |
|
65 |
<a href="controller.pl?action=CustomerVendor/edit&db=[% vc %]&id=[% HTML.url(invoice.vc_id) %]&callback=[% HTML.url('sepa.pl?action=bank_transfer_add&vc=' _ vc) %]"> |
|
66 |
[%- GET HTML.escape(invoice.vcname); |
|
67 |
SET previous_vcname = invoice.vcname; |
|
68 |
IF !invoice.vc_bank_info_ok; |
|
69 |
IF invoice.checked; |
|
70 |
GET ' <sup>(2)</sup>'; |
|
71 |
ELSE; |
|
72 |
GET ' <sup>(1)</sup>'; |
|
73 |
END; |
|
74 |
SET show_vc_bank_info_footnote = '1'; |
|
75 |
END; -%] |
|
76 |
</a> |
|
77 |
[%- END -%] |
|
78 |
</td> |
|
79 |
|
|
80 |
<td> |
|
81 |
<a href="[% IF invoice.invoice %][% iris %][% ELSE %][% arap %][% END %].pl?action=edit&id=[% HTML.escape(invoice.id) %]"> |
|
82 |
[% HTML.escape(invoice.invnumber) %] |
|
83 |
</a> |
|
84 |
</td> |
|
85 |
|
|
86 |
<td align="right">[% LxERP.format_amount(invoice.invoice_amount-invoice.open_sepa_transfer_amount, 2) %]</td> |
|
87 |
<td align="right">[% LxERP.format_amount(invoice.open_amount-invoice.open_sepa_transfer_amount, 2) %]</td> |
|
88 |
<td align="right">[% invoice.transdate %]</td> |
|
89 |
<td align="right">[% invoice.duedate %]</td> |
|
90 |
<td> |
|
91 |
[% IF INSTANCE_CONF.get_sepa_reference_add_vc_vc_id %] |
|
92 |
[%- SET reference = invoice.reference_prefix _ invoice.invnumber _ invoice.reference_prefix_vc _ invoice.vc_vc_id %] |
|
114 |
[% IF show_vc_bank_info_footnote %] |
|
115 |
<div class="long-desc wrapper"> |
|
116 |
<p><sup>(1)</sup> |
|
117 |
[% IF is_vendor %] |
|
118 |
[% 'No bank information has been entered in this vendor\'s master data entry. You cannot create bank transfers unless you enter bank information.' | $T8 %] |
|
119 |
[% "The required information consists of the IBAN and the BIC." | $T8 %] |
|
93 | 120 |
[% ELSE %] |
94 |
[%- SET reference = invoice.reference_prefix _ invoice.invnumber %] |
|
121 |
[% 'No bank information has been entered in this customer\'s master data entry. You cannot create bank collections unless you enter bank information.' | $T8 %] |
|
122 |
[% "The required information consists of the IBAN, the BIC, the mandator ID and the mandate's date of signature." | $T8 %] |
|
95 | 123 |
[% END %] |
96 |
<input name="bank_transfers[].reference" value="[% HTML.escape(reference.substr(0, 140)) %]" maxlength="140" size="30"> |
|
97 |
</td> |
|
98 |
<td align="right"> |
|
99 |
<input id=[% loop.count %] name="bank_transfers[].amount" id="amount_[% loop.count %]" value="[% LxERP.format_amount(invoice.invoice_amount_suggestion, 2) %]" style="text-align: right" size="12"> |
|
100 |
</td> |
|
101 |
<td> |
|
102 |
[% L.select_tag('bank_transfers[].payment_type', invoice.payment_select_options, value_key => 'payment_type', title_key => 'display', id => 'payment_type_' _ loop.count, class => 'type_target' ) %] |
|
103 |
</td> |
|
104 |
<td align="left" [%- IF invoice.within_skonto_period %]style="background-color: LightGreen"[%- END %]>[%- IF invoice.skonto_amount %] [% LxERP.format_amount(invoice.percent_skonto, 2) %] % = [% LxERP.format_amount(invoice.skonto_amount, 2) %] € bis [% invoice.skonto_date %] [%- END %]</td> |
|
105 |
</tr> |
|
106 |
[%- END %] |
|
107 |
</table> |
|
108 | 124 |
</p> |
125 |
<p><sup>(2)</sup> |
|
126 |
[% IF is_vendor %] |
|
127 |
[% 'No bank information has been entered in this vendor\'s master data entry. You cannot create bank transfers unless you enter bank information.' | $T8 %] |
|
128 |
[% "The required information consists of the IBAN and the BIC." | $T8 %] |
|
129 |
[% LxERP.t8("Additionally the invoice is not marked for direct debit and would have been checked automatically had the bank information been entered.") %] |
|
130 |
[% ELSE %] |
|
131 |
[% 'No bank information has been entered in this customer\'s master data entry. You cannot create bank collections unless you enter bank information.' | $T8 %] |
|
132 |
[% "The required information consists of the IBAN, the BIC, the mandator ID and the mandate's date of signature." | $T8 %] |
|
133 |
[% LxERP.t8("Additionally the invoice is marked for direct debit and would have been checked automatically had the bank information been entered.") %] |
|
134 |
[% END %] |
|
135 |
</p> |
|
136 |
</div><!-- /.long-desc --> |
|
137 |
[% END %] |
|
109 | 138 |
|
110 |
[%- IF show_vc_bank_info_footnote %] |
|
111 |
<p> |
|
112 |
<sup>(1)</sup> |
|
113 |
[%- IF is_vendor %] |
|
114 |
[%- 'No bank information has been entered in this vendor\'s master data entry. You cannot create bank transfers unless you enter bank information.' | $T8 %] |
|
115 |
[% "The required information consists of the IBAN and the BIC." | $T8 %] |
|
116 |
[%- ELSE %] |
|
117 |
[%- 'No bank information has been entered in this customer\'s master data entry. You cannot create bank collections unless you enter bank information.' | $T8 %] |
|
118 |
[% "The required information consists of the IBAN, the BIC, the mandator ID and the mandate's date of signature." | $T8 %] |
|
119 |
[%- END %] |
|
120 |
</p> |
|
121 |
|
|
122 |
<p> |
|
123 |
<sup>(2)</sup> |
|
124 |
[%- IF is_vendor %] |
|
125 |
[%- 'No bank information has been entered in this vendor\'s master data entry. You cannot create bank transfers unless you enter bank information.' | $T8 %] |
|
126 |
[% "The required information consists of the IBAN and the BIC." | $T8 %] |
|
127 |
[% LxERP.t8("Additionally the invoice is not marked for direct debit and would have been checked automatically had the bank information been entered.") %] |
|
128 |
[%- ELSE %] |
|
129 |
[%- 'No bank information has been entered in this customer\'s master data entry. You cannot create bank collections unless you enter bank information.' | $T8 %] |
|
130 |
[% "The required information consists of the IBAN, the BIC, the mandator ID and the mandate's date of signature." | $T8 %] |
|
131 |
[% LxERP.t8("Additionally the invoice is marked for direct debit and would have been checked automatically had the bank information been entered.") %] |
|
132 |
[%- END %] |
|
133 |
</p> |
|
134 |
[%- END %] |
|
135 |
|
|
136 |
<input type="hidden" name="vc" value="[%- HTML.escape(vc) %]"> |
|
137 |
</form> |
|
139 |
<input type="hidden" name="vc" value="[% HTML.escape(vc) %]"> |
|
140 |
</form> |
|
138 | 141 |
|
139 |
<script type="text/javascript">
|
|
142 |
<script type="text/javascript"> |
|
140 | 143 |
<!-- |
141 | 144 |
$(function() { |
142 | 145 |
$("#select_all").checkall('INPUT[name="ids[]"]'); |
143 | 146 |
}); |
144 |
-->
|
|
147 |
--> |
|
145 | 148 |
|
146 | 149 |
$( ".type_target" ).change(function() { |
147 | 150 |
type_id = $(this).attr('id'); |
... | ... | |
156 | 159 |
} |
157 | 160 |
}); |
158 | 161 |
|
159 |
</script> |
|
162 |
</script> |
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/sepa/bank_transfer_add.html