Revision fb8d8570
Von Hans Peter Schlaepfer vor fast 6 Jahren hinzugefügt
templates/webpages/sepa/bank_transfer_add.html | ||
---|---|---|
1 |
[%- USE T8 %] |
|
2 |
[%- USE L %] |
|
3 |
[% USE HTML %][% USE LxERP %] |
|
1 |
[% USE T8 %] |
|
2 |
[% USE L %] |
|
3 |
[% USE HTML %] |
|
4 |
[% USE LxERP %] |
|
5 |
|
|
4 | 6 |
[% IF vc == 'vendor' %] |
5 |
[% SET is_vendor = 1 %] |
|
6 |
[% SET arap = 'ap' %] |
|
7 |
[% SET iris = 'ir' %] |
|
7 |
[% SET is_vendor = 1 %]
|
|
8 |
[% SET arap = 'ap' %]
|
|
9 |
[% SET iris = 'ir' %]
|
|
8 | 10 |
[% ELSE %] |
9 |
[% SET is_vendor = 0 %] |
|
10 |
[% SET arap = 'ar' %] |
|
11 |
[% SET iris = 'is' %] |
|
12 |
[%- END %] |
|
11 |
[% SET is_vendor = 0 %] |
|
12 |
[% SET arap = 'ar' %] |
|
13 |
[% SET iris = 'is' %] |
|
14 |
[% END %] |
|
15 |
|
|
16 |
<h1>[% title %]</h1> |
|
13 | 17 |
|
14 |
<p><div class="listtop">[% title %]</div></p> |
|
18 |
<form action="sepa.pl" method="post" id="form"> |
|
19 |
<div class="wrapper"> |
|
15 | 20 |
|
16 |
<form action="sepa.pl" method="post" id="form">
|
|
17 |
<p>
|
|
18 |
[%- IF is_vendor %]
|
|
21 |
<div class="select-item control-panel">
|
|
22 |
<span class="label above">
|
|
23 |
[% IF is_vendor %]
|
|
19 | 24 |
[% 'Please select the source bank account for the transfers:' | $T8 %] |
20 |
[%- ELSE %]
|
|
25 |
[% ELSE %]
|
|
21 | 26 |
[% 'Please select the destination bank account for the collections:' | $T8 %] |
22 |
[%- END %]
|
|
23 |
<br>
|
|
24 |
[% L.select_tag('bank_account',
|
|
25 |
BANK_ACCOUNTS,
|
|
26 |
title_key='displayable_name',
|
|
27 |
with_empty=0,
|
|
28 |
style='width:450px',
|
|
29 |
) %]
|
|
30 |
</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 -->
|
|
31 | 36 |
|
32 |
<p>
|
|
33 |
<table border="0">
|
|
37 |
<table class="tbl-list">
|
|
38 |
<thead>
|
|
34 | 39 |
<tr> |
35 |
<th class="listheading" align="center"><input type="checkbox" id="select_all"></th>
|
|
36 |
<th class="listheading">[% IF is_vendor %][% 'Vendor' | $T8 %][%- ELSE %][%- LxERP.t8('Customer') %][%- END %]</th>
|
|
37 |
<th class="listheading">[% 'Invoice' | $T8 %]</th>
|
|
38 |
<th class="listheading" align="right">[% 'Amount' | $T8 %]</th>
|
|
39 |
<th class="listheading" align="right">[% 'Open amount' | $T8 %]</th>
|
|
40 |
<th class="listheading" align="right">[% 'Invoice Date' | $T8 %]</th>
|
|
41 |
<th class="listheading" align="right">[% 'Due Date' | $T8 %]</th>
|
|
42 |
<th class="listheading">[% 'Purpose' | $T8 %]</th>
|
|
43 |
<th class="listheading" align="right">[% 'Bank transfer amount' | $T8 %]</th>
|
|
44 |
<th class="listheading" align="right">[% 'Payment type' | $T8 %]</th>
|
|
45 |
<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>
|
|
46 | 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> |
|
47 | 113 |
|
48 |
[%- FOREACH invoice = INVOICES %] |
|
49 |
<input type="hidden" name="bank_transfers[+].[% arap %]_id" value="[% HTML.escape(invoice.id) %]"> |
|
50 |
<input type="hidden" id="amount_less_skonto_[% loop.count %]" name="amount_less_skonto_[% loop.count %]" value="[% LxERP.format_amount(invoice.amount_less_skonto, 2) %]"> |
|
51 |
<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) %]"> |
|
52 |
<input type="hidden" id="skonto_amount_[% loop.count %]" name="skonto_amount_[% loop.count %]" value="[% LxERP.format_amount(invoice.skonto_amount, 2) %]"> |
|
53 |
|
|
54 |
|
|
55 |
<tr class="listrow[% IF !invoice.vc_bank_info_ok && invoice.checked %]_error[% END %]"> |
|
56 |
<td align="center"> |
|
57 |
[%- IF invoice.vc_bank_info_ok %] |
|
58 |
[% L.checkbox_tag("ids[]", value=invoice.id, checked=invoice.checked) %] |
|
59 |
[%- END %] |
|
60 |
</td> |
|
61 |
<td> |
|
62 |
[%- IF loop.first || (previous_vcname != invoice.vcname) %] |
|
63 |
<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) %]"> |
|
64 |
[%- GET HTML.escape(invoice.vcname); |
|
65 |
SET previous_vcname = invoice.vcname; |
|
66 |
IF !invoice.vc_bank_info_ok; |
|
67 |
IF invoice.checked; |
|
68 |
GET ' <sup>(2)</sup>'; |
|
69 |
ELSE; |
|
70 |
GET ' <sup>(1)</sup>'; |
|
71 |
END; |
|
72 |
SET show_vc_bank_info_footnote = '1'; |
|
73 |
END; -%] |
|
74 |
</a> |
|
75 |
[%- END -%] |
|
76 |
</td> |
|
77 |
|
|
78 |
<td> |
|
79 |
<a href="[% IF invoice.invoice %][% iris %][% ELSE %][% arap %][% END %].pl?action=edit&id=[% HTML.escape(invoice.id) %]"> |
|
80 |
[% HTML.escape(invoice.invnumber) %] |
|
81 |
</a> |
|
82 |
</td> |
|
83 |
|
|
84 |
<td align="right">[% LxERP.format_amount(invoice.invoice_amount-invoice.open_sepa_transfer_amount, 2) %]</td> |
|
85 |
<td align="right">[% LxERP.format_amount(invoice.open_amount-invoice.open_sepa_transfer_amount, 2) %]</td> |
|
86 |
<td align="right">[% invoice.transdate %]</td> |
|
87 |
<td align="right">[% invoice.duedate %]</td> |
|
88 |
<td> |
|
89 |
[% IF INSTANCE_CONF.get_sepa_reference_add_vc_vc_id %] |
|
90 |
[%- 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 %] |
|
91 | 120 |
[% ELSE %] |
92 |
[%- 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 %] |
|
93 | 123 |
[% END %] |
94 |
<input name="bank_transfers[].reference" value="[% HTML.escape(reference.substr(0, 140)) %]" maxlength="140" size="30"> |
|
95 |
</td> |
|
96 |
<td align="right"> |
|
97 |
<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"> |
|
98 |
</td> |
|
99 |
<td> |
|
100 |
[% 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' ) %] |
|
101 |
</td> |
|
102 |
<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> |
|
103 |
</tr> |
|
104 |
[%- END %] |
|
105 |
</table> |
|
106 | 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 %] |
|
107 | 138 |
|
108 |
[%- IF show_vc_bank_info_footnote %] |
|
109 |
<p> |
|
110 |
<sup>(1)</sup> |
|
111 |
[%- IF is_vendor %] |
|
112 |
[%- 'No bank information has been entered in this vendor\'s master data entry. You cannot create bank transfers unless you enter bank information.' | $T8 %] |
|
113 |
[% "The required information consists of the IBAN and the BIC." | $T8 %] |
|
114 |
[%- ELSE %] |
|
115 |
[%- 'No bank information has been entered in this customer\'s master data entry. You cannot create bank collections unless you enter bank information.' | $T8 %] |
|
116 |
[% "The required information consists of the IBAN, the BIC, the mandator ID and the mandate's date of signature." | $T8 %] |
|
117 |
[%- END %] |
|
118 |
</p> |
|
119 |
|
|
120 |
<p> |
|
121 |
<sup>(2)</sup> |
|
122 |
[%- IF is_vendor %] |
|
123 |
[%- 'No bank information has been entered in this vendor\'s master data entry. You cannot create bank transfers unless you enter bank information.' | $T8 %] |
|
124 |
[% "The required information consists of the IBAN and the BIC." | $T8 %] |
|
125 |
[% LxERP.t8("Additionally the invoice is not marked for direct debit and would have been checked automatically had the bank information been entered.") %] |
|
126 |
[%- ELSE %] |
|
127 |
[%- 'No bank information has been entered in this customer\'s master data entry. You cannot create bank collections unless you enter bank information.' | $T8 %] |
|
128 |
[% "The required information consists of the IBAN, the BIC, the mandator ID and the mandate's date of signature." | $T8 %] |
|
129 |
[% LxERP.t8("Additionally the invoice is marked for direct debit and would have been checked automatically had the bank information been entered.") %] |
|
130 |
[%- END %] |
|
131 |
</p> |
|
132 |
[%- END %] |
|
133 |
|
|
134 |
<input type="hidden" name="vc" value="[%- HTML.escape(vc) %]"> |
|
135 |
</form> |
|
139 |
<input type="hidden" name="vc" value="[% HTML.escape(vc) %]"> |
|
140 |
</form> |
|
136 | 141 |
|
137 |
<script type="text/javascript">
|
|
142 |
<script type="text/javascript"> |
|
138 | 143 |
<!-- |
139 | 144 |
$(function() { |
140 | 145 |
$("#select_all").checkall('INPUT[name="ids[]"]'); |
141 | 146 |
}); |
142 |
-->
|
|
147 |
--> |
|
143 | 148 |
|
144 | 149 |
$( ".type_target" ).change(function() { |
145 | 150 |
type_id = $(this).attr('id'); |
... | ... | |
154 | 159 |
} |
155 | 160 |
}); |
156 | 161 |
|
157 |
</script> |
|
162 |
</script> |
templates/webpages/sepa/bank_transfer_create.html | ||
---|---|---|
1 |
[%- USE T8 %] |
|
2 |
[%- USE L %] |
|
3 |
[% USE HTML %][% USE LxERP %] |
|
1 |
[% USE T8 %] |
|
2 |
[% USE L %] |
|
3 |
[% USE HTML %] |
|
4 |
[% USE LxERP %] |
|
5 |
|
|
4 | 6 |
[% IF vc == 'vendor' %] |
5 |
[% SET is_vendor = 1 %] |
|
6 |
[% SET arap = 'ap' %] |
|
7 |
[% SET iris = 'ir' %] |
|
7 |
[% SET is_vendor = 1 %]
|
|
8 |
[% SET arap = 'ap' %]
|
|
9 |
[% SET iris = 'ir' %]
|
|
8 | 10 |
[% ELSE %] |
9 |
[% SET is_vendor = 0 %] |
|
10 |
[% SET arap = 'ar' %] |
|
11 |
[% SET iris = 'is' %] |
|
12 |
[%- END %]
|
|
11 |
[% SET is_vendor = 0 %]
|
|
12 |
[% SET arap = 'ar' %]
|
|
13 |
[% SET iris = 'is' %]
|
|
14 |
[% END %] |
|
13 | 15 |
|
14 |
[%- IF error_message %] |
|
15 |
<p><div class="message_error">[% error_message %]</div></p> |
|
16 |
[%- END %] |
|
16 |
<h1>[% title %]</h1> |
|
17 | 17 |
|
18 |
<p><div class="listtop">[% title %]</div></p> |
|
18 |
[% IF error_message %] |
|
19 |
<div class="message message_error">[% error_message %]</div> |
|
20 |
[% END %] |
|
19 | 21 |
|
20 |
<form action="sepa.pl" method="post" id="form">
|
|
21 |
<p>1.
|
|
22 |
[%- IF is_vendor %]
|
|
22 |
<form action="sepa.pl" method="post" id="form"> |
|
23 |
<p>1. |
|
24 |
[% IF is_vendor %]
|
|
23 | 25 |
[% 'Please select the source bank account for the transfers:' | $T8 %] |
24 |
[%- ELSE %]
|
|
26 |
[% ELSE %]
|
|
25 | 27 |
[% 'Please select the destination bank account for the collections:' | $T8 %] |
26 |
[%- END %] |
|
27 |
<br> |
|
28 |
[% L.select_tag('bank_account', |
|
29 |
BANK_ACCOUNTS, |
|
30 |
title_key='displayable_name', |
|
31 |
default=bank_account.id, |
|
32 |
with_empty=0, |
|
33 |
style='width:450px', |
|
34 |
) %] |
|
35 |
</p> |
|
28 |
[% END %] |
|
29 |
<br> |
|
30 |
[% L.select_tag('bank_account', |
|
31 |
BANK_ACCOUNTS, |
|
32 |
title_key='displayable_name', |
|
33 |
default=bank_account.id, |
|
34 |
with_empty=0, |
|
35 |
style='width:450px', |
|
36 |
) %] |
|
37 |
</p> |
|
38 |
|
|
39 |
<p>2. |
|
40 |
[% IF is_vendor %] |
|
41 |
[% 'Please Check the bank information for each vendor:' | $T8 %] |
|
42 |
[% ELSE %] |
|
43 |
[% 'Please Check the bank information for each customer:' | $T8 %] |
|
44 |
[% END %] |
|
45 |
</p> |
|
36 | 46 |
|
37 |
<p> |
|
38 |
2. |
|
39 |
[%- IF is_vendor %] |
|
40 |
[% 'Please Check the bank information for each vendor:' | $T8 %] |
|
41 |
[%- ELSE %] |
|
42 |
[% 'Please Check the bank information for each customer:' | $T8 %] |
|
43 |
[%- END %] |
|
44 |
<br> |
|
45 |
<table> |
|
47 |
<table> |
|
48 |
<thead> |
|
46 | 49 |
<tr> |
47 |
<th class="listheading">[%- IF is_vendor %][% 'Vendor' | $T8 %][%- ELSE %][%- LxERP.t8('Customer') %][%- END %]</th>
|
|
48 |
<th class="listheading">[% 'IBAN' | $T8 %]</th>
|
|
49 |
<th class="listheading">[% 'BIC' | $T8 %]</th>
|
|
50 |
<th class="listheading">[% 'Bank' | $T8 %]</th>
|
|
51 |
[% IF vc == 'customer' %] |
|
52 |
<th class="listheading">[% 'Mandator ID' | $T8 %]</th>
|
|
53 |
<th class="listheading">[% 'Mandate Date of Signature' | $T8 %]</th>
|
|
54 |
[%- END %]
|
|
50 |
<th>[% IF is_vendor %][% 'Vendor' | $T8 %][% ELSE %][% LxERP.t8('Customer') %][% END %]</th>
|
|
51 |
<th>[% 'IBAN' | $T8 %]</th>
|
|
52 |
<th>[% 'BIC' | $T8 %]</th>
|
|
53 |
<th>[% 'Bank' | $T8 %]</th>
|
|
54 |
[% IF vc == 'customer' %]
|
|
55 |
<th>[% 'Mandator ID' | $T8 %]</th>
|
|
56 |
<th>[% 'Mandate Date of Signature' | $T8 %]</th>
|
|
57 |
[% END %]
|
|
55 | 58 |
</tr> |
59 |
</thead> |
|
60 |
<tbody> |
|
61 |
[% FOREACH vbi = VC_BANK_INFO %] |
|
62 |
<tr class="listrow[% loop.count % 1 %]"> |
|
63 |
<td> <input type="hidden" name="vc_bank_info[+].id" value="[% HTML.escape(vbi.id) %]"> <input type="hidden" name="vc_bank_info[].name" value="[% HTML.escape(vbi.name) %]"> [% HTML.escape(vbi.name) %] </td> |
|
64 |
<td><input type="text" name="vc_bank_info[].iban" size="34" value="[% HTML.escape(vbi.iban.substr(0, 34)) %]" maxlength="34"></td> |
|
65 |
<td><input type="text" name="vc_bank_info[].bic" size="20" value="[% HTML.escape(vbi.bic.substr(0, 20)) %]" maxlength="20"></td> |
|
66 |
<td><input type="text" name="vc_bank_info[].bank" size="30" value="[% HTML.escape(vbi.bank) %]"></td> |
|
67 |
[% IF vc == 'customer' %] |
|
68 |
<td><input type="text" name="vc_bank_info[].mandator_id" size="30" value="[% HTML.escape(vbi.mandator_id) %]"></td> |
|
69 |
<td>[% L.date_tag("vc_bank_info[].mandate_date_of_signature", vbi.mandate_date_of_signature) %]</td> |
|
70 |
[% END %] |
|
71 |
</tr> |
|
72 |
[% END %] |
|
73 |
</tbody> |
|
74 |
</table> |
|
56 | 75 |
|
57 |
[%- FOREACH vbi = VC_BANK_INFO %] |
|
58 |
<tr class="listrow[% loop.count % 1 %]"> |
|
59 |
<td> |
|
60 |
<input type="hidden" name="vc_bank_info[+].id" value="[% HTML.escape(vbi.id) %]"> |
|
61 |
<input type="hidden" name="vc_bank_info[].name" value="[% HTML.escape(vbi.name) %]"> |
|
62 |
[% HTML.escape(vbi.name) %] |
|
63 |
</td> |
|
64 |
<td><input name="vc_bank_info[].iban" size="34" value="[% HTML.escape(vbi.iban.substr(0, 34)) %]" maxlength="34"></td> |
|
65 |
<td><input name="vc_bank_info[].bic" size="20" value="[% HTML.escape(vbi.bic.substr(0, 20)) %]" maxlength="20"></td> |
|
66 |
<td><input name="vc_bank_info[].bank" size="30" value="[% HTML.escape(vbi.bank) %]"></td> |
|
67 |
[% IF vc == 'customer' %] |
|
68 |
<td><input name="vc_bank_info[].mandator_id" size="30" value="[% HTML.escape(vbi.mandator_id) %]"></td> |
|
69 |
<td>[% L.date_tag("vc_bank_info[].mandate_date_of_signature", vbi.mandate_date_of_signature) %]</td> |
|
70 |
[%- END %] |
|
71 |
</tr> |
|
72 |
[%- END %] |
|
73 |
</table> |
|
74 |
</p> |
|
76 |
<p>3. [% 'Enter the requested execution date or leave empty for the quickest possible execution:' | $T8 %]</p> |
|
75 | 77 |
|
76 |
<p> |
|
77 |
3. [% 'Enter the requested execution date or leave empty for the quickest possible execution:' | $T8 %] |
|
78 |
<br> |
|
79 |
<table> |
|
78 |
<table class="tbl-list"> |
|
79 |
<thead> |
|
80 | 80 |
<tr> |
81 |
<th class="listheading">[%- IF is_vendor %][% 'Vendor' | $T8 %][%- ELSE %][%- LxERP.t8('Customer') %][%- END %]</th>
|
|
82 |
<th class="listheading">[% 'Invoice' | $T8 %]</th>
|
|
83 |
<th class="listheading" align="right">[% 'Amount' | $T8 %]</th>
|
|
84 |
<th class="listheading" align="right">[% 'Open amount' | $T8 %]</th>
|
|
85 |
<th class="listheading">[% 'Purpose' | $T8 %]</th>
|
|
86 |
<th class="listheading" align="right">[%- IF is_vendor %][% 'Bank transfer amount' | $T8 %][%- ELSE %][%- LxERP.t8('Bank collection amount') %][%- END %]</th>
|
|
87 |
<th class="listheading" align="right">[% LxERP.t8('Payment type') %]</th>
|
|
88 |
<th class="listheading" align="right">[% LxERP.t8('Skonto information') %]</th>
|
|
89 |
<th class="listheading">[% 'Execution date' | $T8 %]</th>
|
|
81 |
<th>[% IF is_vendor %][% 'Vendor' | $T8 %][% ELSE %][% LxERP.t8('Customer') %][% END %]</th>
|
|
82 |
<th>[% 'Invoice' | $T8 %]</th>
|
|
83 |
<th>[% 'Amount' | $T8 %]</th>
|
|
84 |
<th>[% 'Open amount' | $T8 %]</th>
|
|
85 |
<th>[% 'Purpose' | $T8 %]</th>
|
|
86 |
<th>[% IF is_vendor %][% 'Bank transfer amount' | $T8 %][% ELSE %][% LxERP.t8('Bank collection amount') %][% END %]</th>
|
|
87 |
<th>[% LxERP.t8('Payment type') %]</th>
|
|
88 |
<th>[% LxERP.t8('Skonto information') %]</th>
|
|
89 |
<th>[% 'Execution date' | $T8 %]</th>
|
|
90 | 90 |
</tr> |
91 |
</thead> |
|
92 |
<tbody> |
|
93 |
[% FOREACH bank_transfer = BANK_TRANSFERS %] |
|
94 |
<tr> |
|
95 |
<td> |
|
96 |
<input type="hidden" name="bank_transfers[+].[% arap %]_id" value="[% HTML.escape(bank_transfer.id) %]"> |
|
97 |
<input type="hidden" name="bank_transfers[].vc_id" value="[% HTML.escape(bank_transfer.vc_id) %]"> |
|
98 |
<input type="hidden" name="bank_transfers[].selected" value="1"> |
|
99 |
<input type="hidden" id="amount_less_skonto_[% loop.count %]" name="amount_less_skonto_[% loop.count %]" value="[% LxERP.format_amount(bank_transfer.amount_less_skonto, 2) %]"> |
|
100 |
<input type="hidden" id="skonto_amount_[% loop.count %]" name="skonto_amount_[% loop.count %]" value="[% LxERP.format_amount(bank_transfer.skonto_amount, 2) %]"> |
|
101 |
<input type="hidden" id="invoice_open_amount_[% loop.count %]" name="invoice_open_amount_[% loop.count %]" value="[% LxERP.format_amount(bank_transfer.open_amount, 2) %]"> |
|
102 |
[% IF loop.first || (previous_vcname != bank_transfer.vcname) %] |
|
103 |
<a href="controller.pl?action=CustomerVendor/edit&db=[% vc %]&id=[% HTML.url(bank_transfer.vc_id) %]&callback=[% HTML.url('sepa.pl?action=bank_transfer_add&vc=' _ vc) %]"> |
|
104 |
[% GET HTML.escape(bank_transfer.vcname); SET previous_vcname = bank_transfer.vcname; %] |
|
105 |
</a> |
|
106 |
[% END %] |
|
107 |
</td> |
|
108 |
<td><a href="[% IF bank_transfer.invoice %][% iris %][% ELSE %][% arap %][% END %].pl?action=edit&id=[% HTML.escape(bank_transfer.id) %]"> [% HTML.escape(bank_transfer.invnumber) %]</a></td> |
|
109 |
<td>[% LxERP.format_amount(bank_transfer.invoice_amount, -2) %]</td> |
|
110 |
<td>[% LxERP.format_amount(bank_transfer.open_amount, -2) %]</td> |
|
111 |
<td><input type="text" name="bank_transfers[].reference" value="[% HTML.escape(bank_transfer.reference.substr(0, 140)) %]" size="40" maxlength="140"></td> |
|
112 |
<td><input type="text" id="[%" loop.count %] name="bank_transfers[].amount" value="[% LxERP.format_amount(bank_transfer.amount, -2) %]" style="text-align: right" size="12"></td> |
|
113 |
<td>[% L.select_tag('bank_transfers[].payment_type', bank_transfer.payment_select_options, value_key => 'payment_type', title_key => 'display', id => 'payment_type_' _ loop.count, class => 'type_target' ) %]</td> |
|
114 |
<td[% if bank_transfer.within_skonto_period %] style="background-color:LightGreen"[% end %]> |
|
115 |
[% IF bank_transfer.skonto_amount %] |
|
116 |
[% LxERP.format_amount(bank_transfer.percent_skonto, 2) %] % = [% LxERP.format_amount(bank_transfer.skonto_amount, 2) %] € [% 'until' | $T8 %] [% bank_transfer.skonto_date %] |
|
117 |
[% END %] |
|
118 |
</td> |
|
119 |
<td>[% L.date_tag('bank_transfers[].requested_execution_date', bank_transfer.recommended_execution_date) %]</td> |
|
120 |
</tr> |
|
121 |
[% END %] |
|
122 |
</tbody> |
|
123 |
</table> |
|
91 | 124 |
|
92 |
[%- FOREACH bank_transfer = BANK_TRANSFERS %] |
|
93 |
<input type="hidden" name="bank_transfers[+].[% arap %]_id" value="[% HTML.escape(bank_transfer.id) %]"> |
|
94 |
<input type="hidden" name="bank_transfers[].vc_id" value="[% HTML.escape(bank_transfer.vc_id) %]"> |
|
95 |
<input type="hidden" name="bank_transfers[].selected" value="1"> |
|
96 |
<input type="hidden" id="amount_less_skonto_[% loop.count %]" name="amount_less_skonto_[% loop.count %]" value="[% LxERP.format_amount(bank_transfer.amount_less_skonto, 2) %]"> |
|
97 |
<input type="hidden" id="skonto_amount_[% loop.count %]" name="skonto_amount_[% loop.count %]" value="[% LxERP.format_amount(bank_transfer.skonto_amount, 2) %]"> |
|
98 |
<input type="hidden" id="invoice_open_amount_[% loop.count %]" name="invoice_open_amount_[% loop.count %]" value="[% LxERP.format_amount(bank_transfer.open_amount, 2) %]"> |
|
99 |
|
|
100 |
<tr class="listrow[% loop.count % 2 %]"> |
|
101 |
<td> |
|
102 |
[%- IF loop.first || (previous_vcname != bank_transfer.vcname) %] |
|
103 |
<a href="controller.pl?action=CustomerVendor/edit&db=[% vc %]&id=[% HTML.url(bank_transfer.vc_id) %]&callback=[% HTML.url('sepa.pl?action=bank_transfer_add&vc=' _ vc) %]"> |
|
104 |
[%- GET HTML.escape(bank_transfer.vcname); |
|
105 |
SET previous_vcname = bank_transfer.vcname; -%] |
|
106 |
</a> |
|
107 |
[%- END -%] |
|
108 |
</td> |
|
109 |
|
|
110 |
<td> |
|
111 |
<a href="[% IF bank_transfer.invoice %][% iris %][% ELSE %][% arap %][% END %].pl?action=edit&id=[% HTML.escape(bank_transfer.id) %]"> |
|
112 |
[% HTML.escape(bank_transfer.invnumber) %] |
|
113 |
</a> |
|
114 |
</td> |
|
115 |
|
|
116 |
<td align="right">[% LxERP.format_amount(bank_transfer.invoice_amount, -2) %]</td> |
|
117 |
<td align="right">[% LxERP.format_amount(bank_transfer.open_amount, -2) %]</td> |
|
118 |
<td> |
|
119 |
<input name="bank_transfers[].reference" value="[% HTML.escape(bank_transfer.reference.substr(0, 140)) %]" size="40" maxlength="140"> |
|
120 |
</td> |
|
121 |
<td align="right"><input id=[% loop.count %] name="bank_transfers[].amount" value="[% LxERP.format_amount(bank_transfer.amount, -2) %]" style="text-align: right" size="12"></td> |
|
122 |
<td> |
|
123 |
[% L.select_tag('bank_transfers[].payment_type', bank_transfer.payment_select_options, value_key => 'payment_type', title_key => 'display', id => 'payment_type_' _ loop.count, class => 'type_target' ) %] |
|
124 |
</td> |
|
125 |
<td align="left" [%- IF bank_transfer.within_skonto_period %]style="background-color: LightGreen"[%- END %]>[%- IF bank_transfer.skonto_amount %] [% LxERP.format_amount(bank_transfer.percent_skonto, 2) %] % = [% LxERP.format_amount(bank_transfer.skonto_amount, 2) %] € [% 'until' | $T8 %] [% bank_transfer.skonto_date %] [% END %]</td> |
|
126 |
<td nowrap> |
|
127 |
[% L.date_tag('bank_transfers[].requested_execution_date', bank_transfer.recommended_execution_date) %] |
|
128 |
</td> |
|
129 |
</tr> |
|
130 |
[%- END %] |
|
131 |
</table> |
|
132 |
</p> |
|
133 |
|
|
134 |
<p> |
|
135 |
[% 'Sum open amount' | $T8 %]: [% LxERP.format_amount(total_trans, -2) %] |
|
136 |
</p> |
|
125 |
<p>[% 'Sum open amount' | $T8 %]: [% LxERP.format_amount(total_trans, -2) %]</p> |
|
137 | 126 |
|
138 |
<input type="hidden" name="vc" value="[%- HTML.escape(vc) %]"> |
|
139 |
<input type="hidden" name="confirmation" value="1"> |
|
140 |
</form> |
|
127 |
<input type="hidden" name="vc" value="[% HTML.escape(vc) %]"> |
|
128 |
<input type="hidden" name="confirmation" value="1"> |
|
141 | 129 |
|
142 |
<script type="text/javascript"> |
|
143 |
$( ".type_target" ).change(function() { |
|
144 |
type_id = $(this).attr('id'); |
|
145 |
var id = type_id.match(/\d*$/); |
|
146 |
// alert("found id " + id); |
|
147 |
if ( $(this).val() == "without_skonto" ) { |
|
148 |
$('#' + id).val( $('#invoice_open_amount_' + id).val() ); |
|
149 |
} else if ( $(this).val() == "difference_as_skonto" ) { |
|
150 |
$('#' + id).val( $('#invoice_open_amount_' + id).val() ); |
|
151 |
} else if ( $(this).val() == "with_skonto_pt" ) { |
|
152 |
$('#' + id).val( $('#amount_less_skonto_' + id).val() ); |
|
153 |
} |
|
154 |
}); |
|
130 |
</form> |
|
155 | 131 |
|
132 |
<script type="text/javascript"> |
|
133 |
$( ".type_target" ).change(function() { |
|
134 |
type_id = $(this).attr('id'); |
|
135 |
var id = type_id.match(/\d*$/); |
|
136 |
// alert("found id " + id); |
|
137 |
if ( $(this).val() == "without_skonto" ) { |
|
138 |
$('#' + id).val( $('#invoice_open_amount_' + id).val() ); |
|
139 |
} else if ( $(this).val() == "difference_as_skonto" ) { |
|
140 |
$('#' + id).val( $('#invoice_open_amount_' + id).val() ); |
|
141 |
} else if ( $(this).val() == "with_skonto_pt" ) { |
|
142 |
$('#' + id).val( $('#amount_less_skonto_' + id).val() ); |
|
143 |
} |
|
144 |
}); |
|
156 | 145 |
</script> |
templates/webpages/sepa/bank_transfer_created.html | ||
---|---|---|
1 |
[%- USE T8 %]
|
|
1 |
[% USE T8 %] |
|
2 | 2 |
[% USE HTML %] |
3 |
<h1>[% title %]</h1> |
|
4 |
|
|
5 |
<p> |
|
6 |
[% 'The SEPA export has been created.' | $T8 %] |
|
7 |
</p> |
|
8 | 3 |
|
9 |
<p> |
|
10 |
<ul> |
|
11 |
<li> |
|
12 |
<a href="sepa.pl?action=bank_transfer_download_sepa_xml&id=[% HTML.url(id) %]&vc=[% HTML.url(vc) %]"> |
|
13 |
[% 'Download SEPA XML export file' | $T8 %] |
|
14 |
</a> |
|
15 |
</li> |
|
16 |
|
|
17 |
<li> |
|
18 |
<a href="sepa.pl?action=bank_transfer_list&l_open=1&l_not_executed=1&vc=[% HTML.url(vc) %]"> |
|
19 |
[% 'List open SEPA exports' | $T8 %] |
|
20 |
</a> |
|
21 |
</li> |
|
22 |
</ul> |
|
23 |
</p> |
|
4 |
<h1>[% title %]</h1> |
|
24 | 5 |
|
6 |
<p>[% 'The SEPA export has been created.' | $T8 %]</p> |
|
7 |
<ul> |
|
8 |
<li><a href="sepa.pl?action=bank_transfer_download_sepa_xml&id=[% HTML.url(id) %]&vc=[% HTML.url(vc) %]"> [% 'Download SEPA XML export file' | $T8 %] </a></li> |
|
9 |
<li><a href="sepa.pl?action=bank_transfer_list&l_open=1&l_not_executed=1&vc=[% HTML.url(vc) %]"> [% 'List open SEPA exports' | $T8 %] </a></li> |
|
10 |
</ul> |
templates/webpages/sepa/bank_transfer_edit.html | ||
---|---|---|
1 |
[%- USE T8 %]
|
|
1 |
[% USE T8 %] |
|
2 | 2 |
[% USE HTML %] |
3 | 3 |
[% USE LxERP %] |
4 |
[%- USE L %] |
|
4 |
[% USE L %] |
|
5 |
|
|
5 | 6 |
[% IF vc == 'vendor' %] |
6 |
[% SET is_vendor = 1 %] |
|
7 |
[% SET arap = 'ap' %] |
|
8 |
[% SET iris = 'ir' %] |
|
7 |
[% SET is_vendor = 1 %]
|
|
8 |
[% SET arap = 'ap' %]
|
|
9 |
[% SET iris = 'ir' %]
|
|
9 | 10 |
[% ELSE %] |
10 |
[% SET is_vendor = 0 %] |
|
11 |
[% SET arap = 'ar' %] |
|
12 |
[% SET iris = 'is' %] |
|
13 |
[%- END %] |
|
11 |
[% SET is_vendor = 0 %] |
|
12 |
[% SET arap = 'ar' %] |
|
13 |
[% SET iris = 'is' %] |
|
14 |
[% END %] |
|
15 |
|
|
14 | 16 |
<h1>[% title %]: [% HTML.escape(export.ids.join(', ')) %]</h1> |
15 | 17 |
|
16 |
<form action="sepa.pl" method="post" id="form"> |
|
17 |
<p> |
|
18 |
<table> |
|
18 |
<form action="sepa.pl" method="post" id="form"> |
|
19 |
|
|
20 |
<table> |
|
21 |
<thead> |
|
19 | 22 |
<tr> |
20 |
<th class="listheading" align="center"><input type="checkbox" id="select_all"></th>
|
|
21 |
<th class="listheading">[% 'Invoice' | $T8 %]</th>
|
|
22 |
<th class="listheading">[%- IF is_vendor %][% 'Vendor' | $T8 %][%- ELSE %][%- LxERP.t8('Customer') %][%- END %]</th>
|
|
23 |
[%- IF is_vendor %]
|
|
24 |
<th class="listheading" colspan="2">[% 'Source bank account' | $T8 %]</th>
|
|
25 |
<th class="listheading" colspan="2">[% 'Target bank account' | $T8 %]</th>
|
|
26 |
[%- ELSE %]
|
|
27 |
<th class="listheading" colspan="2">[% 'Target bank account' | $T8 %]</th>
|
|
28 |
<th class="listheading" colspan="2">[% 'Source bank account' | $T8 %]</th>
|
|
29 |
[%- END %]
|
|
30 |
<th class="listheading" align="right">[% 'Amount' | $T8 %]</th>
|
|
31 |
<th class="listheading" align="right">[% 'Skonto amount' | $T8 %]</th>
|
|
32 |
<th class="listheading" align="right">[% 'Payment type' | $T8 %]</th>
|
|
33 |
[% IF vc == 'customer' %] |
|
34 |
<th class="listheading" align="right">[% 'Mandator ID' | $T8 %]</th>
|
|
35 |
[%- END %]
|
|
36 |
<th class="listheading">[% 'Reference' | $T8 %]</th>
|
|
37 |
<th class="listheading" align="right">[% 'Requested execution date' | $T8 %]</th>
|
|
38 |
<th class="listheading" align="right">[% 'Execution date' | $T8 %]</th>
|
|
23 |
<th><input type="checkbox" id="select_all"></th>
|
|
24 |
<th>[% 'Invoice' | $T8 %]</th>
|
|
25 |
<th>[% IF is_vendor %][% 'Vendor' | $T8 %][% ELSE %][% LxERP.t8('Customer') %][% END %]</th>
|
|
26 |
[% IF is_vendor %]
|
|
27 |
<th colspan="2">[% 'Source bank account' | $T8 %]</th> |
|
28 |
<th colspan="2">[% 'Target bank account' | $T8 %]</th> |
|
29 |
[% ELSE %]
|
|
30 |
<th colspan="2">[% 'Target bank account' | $T8 %]</th> |
|
31 |
<th colspan="2">[% 'Source bank account' | $T8 %]</th> |
|
32 |
[% END %]
|
|
33 |
<th>[% 'Amount' | $T8 %]</th>
|
|
34 |
<th>[% 'Skonto amount' | $T8 %]</th>
|
|
35 |
<th>[% 'Payment type' | $T8 %]</th>
|
|
36 |
[% IF vc == 'customer' %]
|
|
37 |
<th>[% 'Mandator ID' | $T8 %]</th> |
|
38 |
[% END %]
|
|
39 |
<th>[% 'Reference' | $T8 %]</th>
|
|
40 |
<th>[% 'Requested execution date' | $T8 %]</th>
|
|
41 |
<th>[% 'Execution date' | $T8 %]</th>
|
|
39 | 42 |
</tr> |
40 | 43 |
<tr> |
41 |
<th class="listheading" colspan="3"> </th> |
|
42 |
<th class="listheading">[% 'IBAN' | $T8 %]</th> |
|
43 |
<th class="listheading">[% 'BIC' | $T8 %]</th> |
|
44 |
<th class="listheading">[% 'IBAN' | $T8 %]</th> |
|
45 |
<th class="listheading">[% 'BIC' | $T8 %]</th> |
|
46 |
[%- IF show_post_payments_button %] |
|
47 |
<th class="listheading" colspan="[% IF vc == 'customer' %]6[% ELSE %]5[% END %]"> </th> |
|
48 |
<th class="listheading"> |
|
49 |
[% L.date_tag('set_all_execution_date', '', onchange='set_all_execution_date_fields(this);') %] |
|
50 |
</th> |
|
51 |
[%- ELSE %] |
|
52 |
<th class="listheading" colspan="[% IF vc == 'customer' %]7[% ELSE %]6[% END %]"> </th> |
|
53 |
[%- END %] |
|
44 |
<th colspan="3"> </th> |
|
45 |
<th>[% 'IBAN' | $T8 %]</th> |
|
46 |
<th>[% 'BIC' | $T8 %]</th> |
|
47 |
<th>[% 'IBAN' | $T8 %]</th> |
|
48 |
<th>[% 'BIC' | $T8 %]</th> |
|
49 |
[% IF show_post_payments_button %] |
|
50 |
<th colspan="[% IF vc == 'customer' %]6[% ELSE %]5[% END %]"> </th> |
|
51 |
<th> [% L.date_tag('set_all_execution_date', '', onchange='set_all_execution_date_fields(this);') %] </th> |
|
52 |
[% ELSE %] |
|
53 |
<th colspan="[% IF vc == 'customer' %]7[% ELSE %]6[% END %]"> </th> |
|
54 |
[% END %] |
|
54 | 55 |
</tr> |
56 |
</thead> |
|
57 |
<tbody> |
|
58 |
[% FOREACH item = export.items %] |
|
59 |
<tr> |
|
60 |
<td> |
|
61 |
[% IF (show_post_payments_button && !item.executed) || (!show_post_payments_button && item.executed) %] |
|
62 |
[% L.hidden_tag("items[+].id", item.id) %] |
|
63 |
[% L.hidden_tag("items[].sepa_export_id", item.sepa_export_id) %] |
|
64 |
[% L.checkbox_tag("ids[]", value=item.id) %] |
|
65 |
[% END %] |
|
66 |
</td> |
|
67 |
<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> |
|
68 |
<td>[% HTML.escape(item.vc_name) %]</td> |
|
69 |
<td>[% HTML.escape(item.our_iban) %]</td> |
|
70 |
<td>[% HTML.escape(item.our_bic) %]</td> |
|
71 |
<td>[% HTML.escape(item.vc_iban) %]</td> |
|
72 |
<td>[% HTML.escape(item.vc_bic) %]</td> |
|
73 |
<td>[% HTML.escape(LxERP.format_amount(item.amount, 2)) %]</td> |
|
74 |
<td>[% HTML.escape(LxERP.format_amount(item.skonto_amount, 2)) %]</td> |
|
75 |
<td>[% item.payment_type | $T8 %]</td> |
|
76 |
[% IF vc == 'customer' %] |
|
77 |
<td>[% HTML.escape(item.mandator_id) %]</td> |
|
78 |
[% END %] |
|
79 |
<td>[% HTML.escape(item.reference) %]</td> |
|
80 |
<td>[% HTML.escape(item.requested_execution_date) %]</td> |
|
81 |
<td> |
|
82 |
[% IF item.executed %] |
|
83 |
[% HTML.escape(item.execution_date) %] |
|
84 |
[% ELSIF item.export_closed %] |
|
85 |
[% 'not executed' | $T8 %] |
|
86 |
[% ELSE %] |
|
87 |
[% L.date_tag('items[].execution_date', item.requested_execution_date || current_date) %] |
|
88 |
[% END %] |
|
89 |
</td> |
|
90 |
</tr> |
|
91 |
[% END %] |
|
92 |
</tbody> |
|
93 |
</table> |
|
55 | 94 |
|
56 |
[%- FOREACH item = export.items %] |
|
57 |
<tr class="listrow"> |
|
58 |
<td align="center"> |
|
59 |
[%- IF (show_post_payments_button && !item.executed) || (!show_post_payments_button && item.executed) %] |
|
60 |
[% L.hidden_tag("items[+].id", item.id) %] |
|
61 |
[% L.hidden_tag("items[].sepa_export_id", item.sepa_export_id) %] |
|
62 |
[% L.checkbox_tag("ids[]", value=item.id) %] |
|
63 |
[%- END %] |
|
64 |
</td> |
|
65 |
<td> |
|
66 |
<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> |
|
67 |
</td> |
|
68 |
<td>[% HTML.escape(item.vc_name) %]</td> |
|
69 |
<td>[% HTML.escape(item.our_iban) %]</td> |
|
70 |
<td>[% HTML.escape(item.our_bic) %]</td> |
|
71 |
<td>[% HTML.escape(item.vc_iban) %]</td> |
|
72 |
<td>[% HTML.escape(item.vc_bic) %]</td> |
|
73 |
<td align="right">[% HTML.escape(LxERP.format_amount(item.amount, 2)) %]</td> |
|
74 |
<td align="right">[% HTML.escape(LxERP.format_amount(item.skonto_amount, 2)) %]</td> |
|
75 |
<td align="right">[% item.payment_type | $T8 %]</td> |
|
76 |
[% IF vc == 'customer' %] |
|
77 |
<td>[% HTML.escape(item.mandator_id) %]</td> |
|
78 |
[%- END %] |
|
79 |
<td>[% HTML.escape(item.reference) %]</td> |
|
80 |
<td align="right">[% HTML.escape(item.requested_execution_date) %]</td> |
|
81 |
<td align="right" nowrap> |
|
82 |
[%- IF item.executed %] |
|
83 |
[% HTML.escape(item.execution_date) %] |
|
84 |
[%- ELSIF item.export_closed %] |
|
85 |
[% 'not executed' | $T8 %] |
|
86 |
[%- ELSE %] |
|
87 |
[% L.date_tag('items[].execution_date', item.requested_execution_date || current_date) %] |
|
88 |
[%- END %] |
|
89 |
</td> |
|
90 |
</tr> |
|
91 |
[%- END %] |
|
92 |
</table> |
|
93 |
</p> |
|
95 |
<script type="text/javascript"> |
|
96 |
function set_all_execution_date_fields(input) { |
|
97 |
var new_date = $(input).val(); |
|
98 |
$('INPUT[name="items[].execution_date"]').each(function() { |
|
99 |
$(this).val(new_date); |
|
100 |
}); |
|
101 |
} |
|
94 | 102 |
|
95 |
<script type="text/javascript"> |
|
96 |
<!-- |
|
97 |
function set_all_execution_date_fields(input) { |
|
98 |
var new_date = $(input).val(); |
|
99 |
$('INPUT[name="items[].execution_date"]').each(function() { |
|
100 |
$(this).val(new_date); |
|
101 |
}); |
|
102 |
} |
|
103 |
$(function() { |
|
104 |
$("#select_all").checkall('INPUT[name="ids[]"]'); |
|
105 |
}); |
|
106 |
</script> |
|
103 | 107 |
|
104 |
$(function() { |
|
105 |
$("#select_all").checkall('INPUT[name="ids[]"]'); |
|
106 |
}); |
|
107 |
--> |
|
108 |
</script> |
|
108 |
<input type="hidden" name="vc" value="[% HTML.escape(vc) %]"> |
|
109 | 109 |
|
110 |
<input type="hidden" name="vc" value="[% HTML.escape(vc) %]"> |
|
111 |
</form> |
|
110 |
</form> |
templates/webpages/sepa/bank_transfer_list_bottom.html | ||
---|---|---|
1 |
[%- USE T8 %]
|
|
1 |
[% USE T8 %] |
|
2 | 2 |
[% USE HTML %] |
3 | 3 |
|
4 |
[%- IF show_buttons %]
|
|
4 |
[% IF show_buttons %] |
|
5 | 5 |
<input type="hidden" name="mode" value="multi"> |
6 |
<input type="hidden" name="vc" value="[%- HTML.escape(vc) %]">
|
|
6 |
<input type="hidden" name="vc" value="[% HTML.escape(vc) %]"> |
|
7 | 7 |
|
8 |
<script type="text/javascript"> |
|
9 |
<!-- |
|
10 |
$(function() { |
|
11 |
$("#select_all").checkall('INPUT[name="ids[]"]'); |
|
12 |
}); |
|
13 |
--> |
|
14 |
</script> |
|
15 |
[%- END %] |
|
8 |
<script type="text/javascript"><!-- |
|
9 |
$(function() { |
|
10 |
$("#select_all").checkall('INPUT[name="ids[]"]'); |
|
11 |
}); |
|
12 |
--></script> |
|
13 |
[% END %] |
|
16 | 14 |
|
17 | 15 |
</form> |
templates/webpages/sepa/bank_transfer_search.html | ||
---|---|---|
1 |
[%- USE T8 %] |
|
2 |
[%- USE HTML %] |
|
3 |
[%- USE LxERP %] |
|
4 |
[%- USE L %] |
|
1 |
[% USE T8 %] |
|
2 |
[% USE HTML %] |
|
3 |
[% USE LxERP %] |
|
4 |
[% USE L %] |
|
5 |
|
|
5 | 6 |
<h1>[% title %]</h1> |
6 | 7 |
|
7 |
<form action="sepa.pl" method="post" id="form"> |
|
8 |
<p> |
|
9 |
<table> |
|
10 |
<tr> |
|
11 |
<td align="right">[%- IF vc == 'vendor' %][% 'Vendor' | $T8 %][%- ELSE %][%- LxERP.t8('Customer') %][%- END %]</td> |
|
12 |
<td><input name="f_vc" class="initial_focus"></td> |
|
13 |
</tr> |
|
8 |
<form action="sepa.pl" method="post" id="form"> |
|
14 | 9 |
|
10 |
<div class="wrapper"> |
|
11 |
|
|
12 |
<table class="tbl-horizontal"> |
|
13 |
<tbody> |
|
15 | 14 |
<tr> |
16 |
<td align="right">[% 'Invoice number' | $T8 %]</td> |
|
17 |
<td><input name="f_invnumber"></td> |
|
15 |
<th>[% IF vc == 'vendor' %][% 'Vendor' | $T8 %][% ELSE %][% LxERP.t8('Customer') %][% END %]</th> |
|
16 |
<td><input type="text" name="f_vc" class="initial_focus"> |
|
17 |
</td> |
|
18 | 18 |
</tr> |
19 |
|
|
20 | 19 |
<tr> |
21 |
<td align="right">[% LxERP.t8("SEPA message ID") %]</td> |
|
22 |
<td>[% L.input_tag("f_message_id") %]</td> |
|
20 |
<th>[% 'Invoice number' | $T8 %]</th> |
|
21 |
<td><input type="text" name="f_invnumber"> |
|
22 |
</td> |
|
23 | 23 |
</tr> |
24 |
|
|
25 | 24 |
<tr> |
26 |
<td align="right">[% 'Export date from' | $T8 %]</td> |
|
27 |
<td> |
|
28 |
[% L.date_tag('f_export_date_from') %] |
|
29 |
[% 'to (time)' | $T8 %] |
|
30 |
[% L.date_tag('f_export_date_to') %] |
|
31 |
</td> |
|
25 |
<th>[% LxERP.t8("SEPA message ID") %]</th> |
|
26 |
<td>[% L.input_tag("f_message_id") %]</td> |
|
32 | 27 |
</tr> |
33 |
|
|
34 | 28 |
<tr> |
35 |
<td align="right">[% 'Requested execution date from' | $T8 %]</td> |
|
36 |
<td> |
|
37 |
[% L.date_tag('f_requested_execution_date_from') %] |
|
38 |
[% 'to (time)' | $T8 %] |
|
39 |
[% L.date_tag('f_requested_execution_date_to') %] |
|
40 |
</td> |
|
29 |
<th>[% 'Export date from' | $T8 %]</th> |
|
30 |
<td>[% L.date_tag('f_export_date_from') %] [% 'to (time)' | $T8 %] [% L.date_tag('f_export_date_to') %]</td> |
|
41 | 31 |
</tr> |
42 |
|
|
43 | 32 |
<tr> |
44 |
<td align="right">[% 'Execution date from' | $T8 %]</td> |
|
45 |
<td> |
|
46 |
[% L.date_tag('f_execution_date_from') %] |
|
47 |
[% 'to (time)' | $T8 %] |
|
48 |
[% L.date_tag('f_execution_date_to') %] |
|
49 |
</td> |
|
33 |
<th>[% 'Requested execution date from' | $T8 %]</th> |
|
34 |
<td>[% L.date_tag('f_requested_execution_date_from') %] [% 'to (time)' | $T8 %] [% L.date_tag('f_requested_execution_date_to') %]</td> |
|
50 | 35 |
</tr> |
51 |
|
|
52 | 36 |
<tr> |
53 |
<td align="right" valign="top">[% 'Include in Report' | $T8 %]</td> |
|
54 |
<td valign="top"> |
|
55 |
<table> |
|
56 |
<tr> |
|
57 |
<td> |
|
58 |
<input type="checkbox" name="l_open" id="l_open" value="1" checked> |
|
59 |
<label for="l_open">[% 'open' | $T8 %]</label> |
|
60 |
</td> |
|
61 |
|
|
62 |
<td> |
|
63 |
<input type="checkbox" name="l_closed" id="l_closed" value="1"> |
|
64 |
<label for="l_closed">[% 'closed' | $T8 %]</label> |
|
65 |
</td> |
|
66 |
</tr> |
|
37 |
<th>[% 'Execution date from' | $T8 %]</th> |
|
38 |
<td>[% L.date_tag('f_execution_date_from') %] [% 'to (time)' | $T8 %] [% L.date_tag('f_execution_date_to') %]</td> |
|
39 |
</tr> |
|
40 |
</tbody> |
|
41 |
</table> |
|
67 | 42 |
|
68 |
<tr> |
|
69 |
<td> |
|
70 |
<input type="checkbox" name="l_not_executed" id="l_not_executed" value="1" checked> |
|
71 |
<label for="l_not_executed">[% 'not yet executed' | $T8 %]</label> |
|
72 |
</td> |
|
43 |
<div class="form-addition control-panel"> |
|
44 |
<h4>[% 'Include in Report' | $T8 %]</h4> |
|
45 |
<div class="list"> |
|
46 |
<div><input type="checkbox" name="l_open" id="l_open" value="1" checked> <label for="l_open"> [% 'open' | $T8 %]</label></div> |
|
47 |
<div><input type="checkbox" name="l_closed" id="l_closed" value="1"> <label for="l_closed"> [% 'closed' | $T8 %]</label></div> |
|
48 |
<div><input type="checkbox" name="l_not_executed" id="l_not_executed" value="1" checked> <label for="l_not_executed"> [% 'not yet executed' | $T8 %]</label></div> |
|
49 |
<div><input type="checkbox" name="l_executed" id="l_executed" value="1" checked> <label for="l_executed"> [% 'executed' | $T8 %]</label></div> |
|
50 |
</div> |
|
51 |
</div><!-- /.form-addition --> |
|
73 | 52 |
|
74 |
<td> |
|
75 |
<input type="checkbox" name="l_executed" id="l_executed" value="1" checked> |
|
76 |
<label for="l_executed">[% 'executed' | $T8 %]</label> |
|
77 |
</td> |
|
78 |
</tr> |
|
79 |
</table> |
|
80 |
</td> |
|
81 |
</tr> |
|
53 |
</div><!-- /.wrapper --> |
|
82 | 54 |
|
83 |
</table> |
|
84 |
</p> |
|
55 |
<input type="hidden" name="vc" value="[% HTML.escape(vc) %]"> |
|
85 | 56 |
|
86 |
<input type="hidden" name="vc" value="[%- HTML.escape(vc) %]"> |
|
87 |
</form> |
|
57 |
</form> |
Auch abrufbar als: Unified diff
Neues kivitendo Design Aenderungen in templates/webpages/sepa/..