Revision 9e9fd711
Von Hans P. Schlaepfer vor etwa 4 Jahren hinzugefügt
templates/webpages/ar/form_header.html | ||
---|---|---|
6 | 6 |
|
7 | 7 |
<h1>[% title | html %]</h1> |
8 | 8 |
|
9 |
[%- INCLUDE 'common/flash.html' %]
|
|
9 |
[% INCLUDE 'common/flash.html' %] |
|
10 | 10 |
|
11 |
<form method=post name="arledger" action="[% script %]" id="form">
|
|
11 |
<form method="post" name="arledger" action="[% script %]" id="form">
|
|
12 | 12 |
|
13 | 13 |
[% L.hidden_tag('id', id) %] |
14 | 14 |
[% L.hidden_tag('sort', sort) %] |
... | ... | |
21 | 21 |
[% L.hidden_tag('follow_up_rowcount', 1) %] |
22 | 22 |
<input type="hidden" name="lastmtime" value="[% HTML.escape(lastmtime) %]"> |
23 | 23 |
|
24 |
[%- IF saved_message %]<p>[% saved_message | html %]</p>[% END %]
|
|
24 |
[% IF saved_message %]<p class="message message_info">[% saved_message | html %]</p>[% END %]
|
|
25 | 25 |
|
26 | 26 |
<div class="tabwidget"> |
27 |
<ul> |
|
28 |
<li><a href="#ui-tabs-basic-data">[% 'Basic Data' | $T8 %]</a></li> |
|
29 |
[%- IF id %] |
|
30 |
[%- IF INSTANCE_CONF.get_doc_storage %] |
|
31 |
<li><a href="controller.pl?action=File/list&file_type=attachment&object_type=invoice&object_id=[% HTML.url(id) %]">[% 'Attachments' | $T8 %]</a></li> |
|
32 |
[%- END %] |
|
33 |
[% IF AUTH.assert('record_links', 1) %] |
|
34 |
<li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=Invoice&object_id=[% HTML.url(id) %]">[% 'Linked Records' | $T8 %]</a></li> |
|
35 |
[%- END %] |
|
36 |
<li><a href="[% 'controller.pl?action=AccTrans/list_transactions&trans_id=' _ HTML.url(id) | html %]">[% LxERP.t8('Transactions') %]</a></li> |
|
37 |
[%- END %] |
|
38 |
</ul> |
|
39 |
|
|
40 |
<div id="ui-tabs-basic-data"> |
|
41 |
<table width=100%> |
|
42 |
<tr valign=top> |
|
43 |
<td> |
|
44 |
<table width=100%> |
|
45 |
<tr valign=top> |
|
46 |
<td> |
|
47 |
<table> |
|
48 |
<tr> |
|
49 |
<th align="right" nowrap>[% 'Customer' | $T8 %]</th> |
|
50 |
<td colspan=3> |
|
51 |
[% P.customer_vendor.picker("customer_id", customer_id, type="customer", style="width: 300px", class=(initial_focus == 'customer_id' ? "initial_focus" : ""), onchange="\$('#update_button').click()") %] |
|
52 |
[% L.button_tag("show_vc_details('customer')", LxERP.t8('Details (one letter abbreviation)')) %] |
|
53 |
[% L.hidden_tag("previous_customer_id", customer_id) %] |
|
54 |
[% L.hidden_tag('terms', terms) %] |
|
55 |
</td> |
|
56 |
</tr> |
|
57 |
[%- IF max_dunning_level || invoice_obj.dunning_config_id %] |
|
58 |
<tr> |
|
59 |
<th align="right" valign="top">[% LxERP.t8("Dunning status") %]</th> |
|
60 |
<td valign="top"> |
|
61 |
[% IF invoice_obj.dunning_config_id %] |
|
62 |
<span class="dunned_invoice">[% LxERP.t8("This invoice's dunning level: #1", invoice_obj.dunning_config.dunning_description) %]</span> |
|
63 |
[% IF max_dunning_level %]<br>[% END %] |
|
64 |
[% END %] |
|
65 |
[% IF max_dunning_level %] |
|
66 |
<span class="customer_dunning_level"> |
|
67 |
[% LxERP.t8("Customer's current maximum dunning level: #1", max_dunning_level) %] |
|
68 |
<br> |
|
69 |
[% LxERP.t8("Dunned open amount: #1", LxERP.format_amount(dunning_amount, 2)) %] |
|
70 |
</span> |
|
71 |
[% END %] |
|
72 |
</td> |
|
73 |
</tr> |
|
74 |
[%- END %] |
|
75 |
<tr> |
|
76 |
<th align="right" valign="top">[% LxERP.t8("Credit Limit") %]</th> |
|
77 |
<td> |
|
78 |
[% LxERP.format_amount(creditlimit, 0) %][% L.hidden_tag('creditlimit', LxERP.format_amount(creditlimit, 0)) %]; |
|
79 |
[% LxERP.t8("Remaining") %] |
|
80 |
<span class="plus[% creditremaining < 0 ? 0 : 1 %]">[% LxERP.format_amount(creditremaining, 0) %][% L.hidden_tag('creditremaining', LxERP.format_amount(creditremaining, 0)) %]</span> |
|
81 |
</td> |
|
82 |
</tr> |
|
83 |
[%- IF invoice_obj.sepa_exports.as_list.size %] |
|
84 |
<tr> |
|
85 |
<th align="right">[% LxERP.t8("SEPA exports") %]</th> |
|
86 |
<td> |
|
87 |
[% FOREACH export = invoice_obj.sepa_exports.as_list %] |
|
88 |
<a href="sepa.pl?action=bank_transfer_edit&vc=customer&id=[% HTML.url(export.id) %]">[% HTML.escape(export.id) %]</a> |
|
89 |
[% UNLESS loop.last %], [% END %] |
|
90 |
[% END %] |
|
91 |
</td> |
|
92 |
</tr> |
|
93 |
[%- END %] |
|
94 |
<tr> |
|
95 |
<th align=right>[% 'Currency' | $T8 %]</th> |
|
96 |
<td>[% L.select_tag("currency", currencies, default=currency, value_key="name", title_key="name") %]</td> |
|
97 |
[% L.hidden_tag('defaultcurrency', defaultcurrency) %] |
|
98 |
[% L.hidden_tag('fxgain_accno', fxgain_accno) %] |
|
99 |
[% L.hidden_tag('fxloss_accno', fxloss_accno) %] |
|
100 | 27 |
|
101 |
[% L.hidden_tag('forex', forex) %] |
|
102 |
[% IF show_exch %] |
|
103 |
<th align=right>[% 'Exchangerate' | $T8 %]</th> |
|
104 |
<td>[%- IF forex %][% L.hidden_tag('exchangerate', LxERP.format_amount(exchangerate, 5, 1)) %][% LxERP.format_amount(exchangerate, 5, 1) %][%- ELSE %][% L.input_tag('exchangerate', LxERP.format_amount(exchangerate, 5, 1), size=10) %][%- END %]</td> |
|
105 |
[% END %] |
|
106 |
</tr> |
|
107 |
[% IF ALL_DEPARTMENTS %] |
|
108 |
<tr> |
|
109 |
<th align="right" nowrap>[% 'Department' | $T8 %]</th> |
|
110 |
<td colspan=3>[% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1) %]</td> |
|
111 |
</tr> |
|
112 |
[% END %] |
|
113 |
<tr> |
|
114 |
<td align=right>[% L.checkbox_tag('taxincluded', checked=taxincluded) %]</td> |
|
115 |
<th align="left" nowrap><label for="taxincluded">[% 'Tax Included' | $T8 %]</label></th> |
|
116 |
</tr> |
|
117 |
<tr> |
|
118 |
<td align="right">[% L.checkbox_tag('direct_debit', checked=direct_debit) %]</td> |
|
119 |
<th align="left" nowrap><label for="direct_debit">[% 'direct debit' | $T8 %]</label></th> |
|
120 |
</tr> |
|
121 |
</table> |
|
122 |
</td> |
|
123 |
<td align=right> |
|
124 |
<table> |
|
125 |
<tr> |
|
126 |
<th align=right nowrap>[% 'Salesperson' | $T8 %]</th> |
|
127 |
<td colspan=2>[% P.select_tag("employee_id", employees, default=employee_id, title_key='safe_name') %]</td> |
|
128 |
</tr> |
|
129 |
<tr> |
|
130 |
<th align=right nowrap>[% 'Invoice Number' | $T8 %]</th> |
|
131 |
<td><input name=invnumber size=11 value="[% invnumber | html %]"></td> |
|
132 |
</tr> |
|
133 |
<tr> |
|
134 |
<th align=right nowrap>[% 'Order Number' | $T8 %]</th> |
|
135 |
<td><input name=ordnumber size=11 value="[% ordnumber | html %]"></td> |
|
136 |
</tr> |
|
137 |
<tr> |
|
138 |
<th align=right nowrap>[% 'Invoice Date' | $T8 %]</th> |
|
139 |
<td>[% L.date_tag('transdate', transdate) %]</td> |
|
140 |
</tr> |
|
141 |
<tr> |
|
142 |
<th align=right nowrap>[% 'Due Date' | $T8 %]</th> |
|
143 |
<td>[% L.date_tag('duedate', duedate) %]</td> |
|
144 |
</tr> |
|
145 |
<tr> |
|
146 |
<th align=right nowrap>[% 'Delivery Date' | $T8 %]</th> |
|
147 |
<td>[% L.date_tag('deliverydate', deliverydate) %]</td> |
|
148 |
</tr> |
|
149 |
<tr> |
|
150 |
<th align=right nowrap>[% 'Project Number' | $T8 %]</th> |
|
151 |
<td>[% L.select_tag('globalproject_id', ALL_PROJECTS, title_key = 'projectnumber', default = globalproject_id, with_empty = 1, onChange = "document.getElementById('update_button').click();") %]</td> |
|
152 |
</tr> |
|
153 |
</table> |
|
154 |
</td> |
|
155 |
</tr> |
|
156 |
</table> |
|
157 |
</td> |
|
158 |
</tr> |
|
28 |
<ul> |
|
29 |
<li><a href="#ui-tabs-basic-data">[% 'Basic Data' | $T8 %]</a></li> |
|
30 |
[% IF id %] |
|
31 |
[% IF INSTANCE_CONF.get_doc_storage %] |
|
32 |
<li><a href="controller.pl?action=File/list&file_type=attachment&object_type=invoice&object_id=[% HTML.url(id) %]">[% 'Attachments' | $T8 %]</a></li> |
|
33 |
[% END %] |
|
34 |
[% IF AUTH.assert('record_links', 1) %] |
|
35 |
<li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=Invoice&object_id=[% HTML.url(id) %]">[% 'Linked Records' | $T8 %]</a></li> |
|
36 |
[% END %] |
|
37 |
<li><a href="[% 'controller.pl?action=AccTrans/list_transactions&trans_id=' _ HTML.url(id) | html %]">[% LxERP.t8('Transactions') %]</a></li> |
|
38 |
[% END %] |
|
39 |
</ul> |
|
159 | 40 |
|
160 |
[% L.hidden_tag('rowcount', rowcount) %] |
|
161 |
<tr> |
|
162 |
<td> |
|
163 |
<table width=100%> |
|
164 |
<tr class=listheading> |
|
165 |
<th class=listheading style="width:15%">[% 'Account' | $T8 %]</th> |
|
166 |
<th class=listheading style="width:10%">[% 'Amount' | $T8 %]</th> |
|
167 |
<th class=listheading style="width:10%">[% 'Tax' | $T8 %]</th> |
|
168 |
<th class=listheading style="width:5%">[% 'Taxkey' | $T8 %]</th> |
|
169 |
<th class=listheading style="width:10%">[% 'Project' | $T8 %]</th> |
|
170 |
</tr> |
|
171 | 41 |
|
42 |
<div id="ui-tabs-basic-data"> |
|
172 | 43 |
|
173 |
[%- FOREACH row IN transactions %] |
|
174 |
<tr> |
|
175 |
<td>[% row.selectAR_amount %]</td> |
|
176 |
<td>[% L.input_tag('amount_' _ loop.count, LxERP.format_amount(row.amount, 2)) %]</td> |
|
177 |
<td>[% L.hidden_tag('tax_' _ loop.count, LxERP.format_tax(row.tax, 2)) %][% LxERP.format_amount(row.tax, 2) | html %]</td> |
|
178 |
<td>[% row.taxchart %]</td> |
|
179 |
<td>[% L.select_tag('project_id_' _ loop.count, ALL_PROJECTS, title_key = 'projectnumber', default = row.project_id, with_empty = 1) %]</td> |
|
180 |
</tr> |
|
181 |
[%- END %] |
|
44 |
<div class="wrapper"> |
|
182 | 45 |
|
46 |
<table class="tbl-horizontal"> |
|
47 |
<caption>[% 'Customer & Order' | $T8 %]</caption> |
|
48 |
<tbody> |
|
49 |
<tr> |
|
50 |
<th>[% 'Customer' | $T8 %]</th> |
|
51 |
<td> |
|
52 |
[% P.customer_vendor.picker("customer_id", customer_id, type="customer", style="width: 300px", class=(initial_focus == 'customer_id' ? "initial_focus" : ""), onchange="\$('#update_button').click()") %] |
|
53 |
[% L.button_tag("show_vc_details('customer')", LxERP.t8('Details (one letter abbreviation)')) %] |
|
54 |
[% L.hidden_tag("previous_customer_id", customer_id) %] |
|
55 |
[% L.hidden_tag('terms', terms) %] |
|
56 |
</td> |
|
57 |
</tr> |
|
58 |
[% IF max_dunning_level || invoice_obj.dunning_config_id %] |
|
59 |
<tr> |
|
60 |
<th>[% LxERP.t8("Dunning status") %]</th> |
|
61 |
<td> |
|
62 |
[% IF invoice_obj.dunning_config_id %] |
|
63 |
<span class="dunned_invoice">[% LxERP.t8("This invoice's dunning level: #1", invoice_obj.dunning_config.dunning_description) %]</span> |
|
64 |
[% IF max_dunning_level %]<br>[% END %] |
|
65 |
[% END %] |
|
66 |
[% IF max_dunning_level %] |
|
67 |
<span class="customer_dunning_level"> |
|
68 |
[% LxERP.t8("Customer's current maximum dunning level: #1", max_dunning_level) %] <br> |
|
69 |
[% LxERP.t8("Dunned open amount: #1", LxERP.format_amount(dunning_amount, 2)) %] |
|
70 |
</span> |
|
71 |
[% END %] |
|
72 |
</td> |
|
73 |
</tr> |
|
74 |
[% END %] |
|
75 |
<tr> |
|
76 |
<th>[% LxERP.t8("Credit Limit") %]</th> |
|
77 |
<td> |
|
78 |
[% LxERP.format_amount(creditlimit, 0) %][% L.hidden_tag('creditlimit', LxERP.format_amount(creditlimit, 0)) %]; |
|
79 |
[% LxERP.t8("Remaining") %] |
|
80 |
<span class="plus[% creditremaining < 0 ? 0 : 1 %]">[% LxERP.format_amount(creditremaining, 0) %][% L.hidden_tag('creditremaining', LxERP.format_amount(creditremaining, 0)) %]</span> |
|
81 |
</td> |
|
82 |
</tr> |
|
83 |
[% IF invoice_obj.sepa_exports.as_list.size %] |
|
84 |
<tr> |
|
85 |
<th>[% LxERP.t8("SEPA exports") %]</th> |
|
86 |
<td> |
|
87 |
[% FOREACH export = invoice_obj.sepa_exports.as_list %] |
|
88 |
<a href="sepa.pl?action=bank_transfer_edit&vc=customer&id=[% HTML.url(export.id) %]">[% HTML.escape(export.id) %]</a> |
|
89 |
[% UNLESS loop.last %], [% END %] |
|
90 |
[% END %] |
|
91 |
</td> |
|
92 |
</tr> |
|
93 |
[% END %] |
|
94 |
<tr> |
|
95 |
<th>[% 'Currency' | $T8 %]</th> |
|
96 |
<td>[% L.select_tag("currency", currencies, default=currency, value_key="name", title_key="name") %]</td> |
|
97 |
[% L.hidden_tag('defaultcurrency', defaultcurrency) %] |
|
98 |
[% L.hidden_tag('fxgain_accno', fxgain_accno) %] |
|
99 |
[% L.hidden_tag('fxloss_accno', fxloss_accno) %] |
|
100 |
[% L.hidden_tag('forex', forex) %] |
|
101 |
[% IF show_exch %] |
|
102 |
<!-- PENDENT: Testen und Design ggf. anpassen --> |
|
103 |
[% 'Exchangerate' | $T8 %]: |
|
104 |
[% IF forex %] |
|
105 |
[% L.hidden_tag('exchangerate', LxERP.format_amount(exchangerate, 5, 1)) %][% LxERP.format_amount(exchangerate, 5, 1) %] |
|
106 |
[% ELSE %] |
|
107 |
[% L.input_tag('exchangerate', LxERP.format_amount(exchangerate, 5, 1), size=10) %] |
|
108 |
[% END %] |
|
109 |
[% END %] |
|
110 |
</tr> |
|
111 |
[% IF ALL_DEPARTMENTS %] |
|
183 | 112 |
<tr> |
184 |
<td colspan=6> |
|
185 |
<hr noshade> |
|
186 |
</td> |
|
113 |
<th>[% 'Department' | $T8 %]</th> |
|
114 |
<td>[% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1) %]</td> |
|
187 | 115 |
</tr> |
188 |
<tr> |
|
189 |
<td>[% P.chart.picker("AR_chart_id", AR_chart_id, style="width: 400px", type="AR") %]</td> |
|
190 |
<th align=left>[% LxERP.format_amount(invtotal, 2) | html %]</th> |
|
116 |
[% END %] |
|
117 |
<tr> |
|
118 |
<th></th> |
|
119 |
<td>[% L.checkbox_tag('taxincluded', checked=taxincluded) %] <label for="taxincluded">[% 'Tax Included' | $T8 %]</label></td> |
|
120 |
</tr> |
|
121 |
<tr> |
|
122 |
<th></th> |
|
123 |
<td>[% L.checkbox_tag('direct_debit', checked=direct_debit) %] <label for="direct_debit">[% 'direct debit' | $T8 %]</label></td> |
|
124 |
</tr> |
|
125 |
</tbody> |
|
126 |
</table> |
|
191 | 127 |
|
192 |
<input type=hidden name=oldinvtotal value='[% oldinvtotal %]'> |
|
193 |
<input type=hidden name=oldtotalpaid value='[% oldtotalpaid %]'> |
|
128 |
<table class="tbl-horizontal"> |
|
129 |
<caption>[% 'Notes' | $T8 %]</caption> |
|
130 |
<tbody> |
|
131 |
<tr> |
|
132 |
<td> |
|
133 |
<textarea name="notes" rows="[% rows %]" cols="30" wrap="soft">[% notes | html %]</textarea> |
|
134 |
</td> |
|
135 |
</tr> |
|
136 |
<tr> |
|
137 |
<th> |
|
138 |
[% 'Notes for customer' | $T8 %]<br> |
|
139 |
<textarea name="intnotes" rows="[% rows %]" cols="30" wrap="soft" readonly>[% intnotes | html %]</textarea> |
|
140 |
</th> |
|
141 |
</tr> |
|
142 |
</tbody> |
|
143 |
</table> |
|
194 | 144 |
|
195 |
<input type=hidden name=taxaccounts value="[% taxaccounts | html %]"> |
|
145 |
<table class="tbl-horizontal"> |
|
146 |
<caption>[% 'Dates & Numbers' | $T8 %]</caption> |
|
147 |
<tbody> |
|
148 |
<tr> |
|
149 |
<th>[% 'Salesperson' | $T8 %]</th> |
|
150 |
<td>[% P.select_tag("employee_id", employees, default=employee_id, title_key='safe_name') %]</td> |
|
151 |
</tr> |
|
152 |
<tr> |
|
153 |
<th>[% 'Invoice Number' | $T8 %]</th> |
|
154 |
<td><input type="text" name="invnumber" size="11" value="[% invnumber | html %]"></td> |
|
155 |
</tr> |
|
156 |
<tr> |
|
157 |
<th>[% 'Order Number' | $T8 %]</th> |
|
158 |
<td><input type="text" name="ordnumber" size="11" value="[% ordnumber | html %]"></td> |
|
159 |
</tr> |
|
160 |
<tr> |
|
161 |
<th>[% 'Invoice Date' | $T8 %]</th> |
|
162 |
<td>[% L.date_tag('transdate', transdate) %]</td> |
|
163 |
</tr> |
|
164 |
<tr> |
|
165 |
<th>[% 'Due Date' | $T8 %]</th> |
|
166 |
<td>[% L.date_tag('duedate', duedate) %]</td> |
|
167 |
</tr> |
|
168 |
<tr> |
|
169 |
<th>[% 'Delivery Date' | $T8 %]</th> |
|
170 |
<td>[% L.date_tag('deliverydate', deliverydate) %]</td> |
|
171 |
</tr> |
|
172 |
<tr> |
|
173 |
<th>[% 'Project Number' | $T8 %]</th> |
|
174 |
<td>[% L.select_tag('globalproject_id', ALL_PROJECTS, title_key = 'projectnumber', default = globalproject_id, with_empty = 1, onChange = "document.getElementById('update_button').click();") %]</td> |
|
175 |
</tr> |
|
176 |
</tbody> |
|
177 |
</table> |
|
196 | 178 |
|
197 |
<td colspan=4></td>
|
|
179 |
</div><!-- /.wrapper -->
|
|
198 | 180 |
|
181 |
[% L.hidden_tag('rowcount', rowcount) %] |
|
199 | 182 |
|
200 |
</tr> |
|
201 |
</table> |
|
202 |
</td> |
|
183 |
<table class="tbl-list" style="width:90%;"> |
|
184 |
<caption>[% 'Transaction' | $T8 %]</caption> |
|
185 |
<thead> |
|
186 |
<tr> |
|
187 |
<th>[% 'Account' | $T8 %]</th> |
|
188 |
<th class="right">[% 'Amount' | $T8 %]</th> |
|
189 |
<th class="right">[% 'Tax' | $T8 %]</th> |
|
190 |
<th>[% 'Taxkey' | $T8 %]</th> |
|
191 |
<th>[% 'Project' | $T8 %]</th> |
|
203 | 192 |
</tr> |
193 |
</thead> |
|
194 |
<tbody> |
|
195 |
[% FOREACH row IN transactions %] |
|
204 | 196 |
<tr> |
205 |
<td> |
|
206 |
<table width=100%> |
|
207 |
<tr> |
|
208 |
<th align=left width=1%>[% 'Notes' | $T8 %]</th> |
|
209 |
<td align=left><textarea name=notes rows="[% rows %]" cols=50 wrap=soft>[% notes | html %]</textarea></td> |
|
210 |
|
|
211 |
<th align=left width=1%>[% 'Notes for customer' | $T8 %]</th> |
|
212 |
<td align=left><textarea name=intnotes rows="[% rows %]" cols=50 wrap=soft readonly>[% intnotes | html %]</textarea></td> |
|
213 |
</tr> |
|
214 |
</table> |
|
215 |
</td> |
|
216 |
</tr> |
|
217 |
<tr> |
|
218 |
<td> |
|
219 |
<table width=100%> |
|
220 |
<tr class=listheading> |
|
221 |
<th colspan=7 class=listheading>[% 'Incoming Payments' | $T8 %]</th> |
|
222 |
</tr> |
|
197 |
<td>[% row.selectAR_amount %]</td> |
|
198 |
<td class="numeric">[% L.input_tag('amount_' _ loop.count, LxERP.format_amount(row.amount, 2), class='wi-small numeric') %]</td> |
|
199 |
<td class="numeric">[% L.hidden_tag('tax_' _ loop.count, LxERP.format_tax(row.tax, 2)) %][% LxERP.format_amount(row.tax, 2) | html %]</td> |
|
200 |
<td>[% row.taxchart %]</td> |
|
201 |
<td>[% L.select_tag('project_id_' _ loop.count, ALL_PROJECTS, title_key='projectnumber', default=row.project_id, with_empty=1, class="wi-small") %]</td> |
|
202 |
</tr> |
|
203 |
[% END %] |
|
204 |
</tbody> |
|
205 |
<tfoot> |
|
206 |
<tr> |
|
207 |
<td>[% P.chart.picker("AR_chart_id", AR_chart_id, style="width: 400px", type="AR") %]</td> |
|
208 |
<th class="numeric">[% LxERP.format_amount(invtotal, 2) | html %]</th> |
|
209 |
<input type="hidden" name="oldinvtotal" value="[% oldinvtotal %]"> |
|
210 |
<input type="hidden" name="oldtotalpaid" value="[% oldtotalpaid %]"> |
|
211 |
<input type="hidden" name="taxaccounts" value="[% taxaccounts | html %]"> |
|
212 |
<td colspan="3"></td> |
|
213 |
</tr> |
|
214 |
</tfoot> |
|
215 |
</table> |
|
223 | 216 |
|
224 |
<tr> |
|
225 |
<th>[% 'Date' | $T8 %]</th> |
|
226 |
<th>[% 'Source' | $T8 %]</th> |
|
227 |
<th>[% 'Memo' | $T8 %]</th> |
|
228 |
<th>[% 'Amount' | $T8 %]</th> |
|
229 |
<th></th> |
|
230 |
[%- IF show_exch %] |
|
231 |
<th>[% 'Exch' | $T8 %]</th> |
|
232 |
[%- END %] |
|
233 |
<th>[% 'Account' | $T8 %]</th> |
|
234 |
<th>[% 'Project Number' | $T8 %]</th> |
|
235 |
</tr> |
|
236 | 217 |
|
237 |
[%- FOREACH row IN payments %] |
|
238 |
<tr> |
|
239 |
<td align=center> |
|
240 |
[%- IF row.changeable %] |
|
218 |
<table class="tbl-list" style="width:90%;"> |
|
219 |
<caption>[% 'Incoming Payments' | $T8 %]</caption> |
|
220 |
<thead> |
|
221 |
<tr> |
|
222 |
<th>[% 'Date' | $T8 %]</th> |
|
223 |
<th>[% 'Source' | $T8 %]</th> |
|
224 |
<th>[% 'Memo' | $T8 %]</th> |
|
225 |
<th class="right">[% 'Amount' | $T8 %]</th> |
|
226 |
<th></th> |
|
227 |
[% IF show_exch %] |
|
228 |
<th>[% 'Exch' | $T8 %]</th> |
|
229 |
[% END %] |
|
230 |
<th>[% 'Account' | $T8 %]</th> |
|
231 |
<th>[% 'Project Number' | $T8 %]</th> |
|
232 |
</tr> |
|
233 |
</thead> |
|
234 |
<tbody> |
|
235 |
[% FOREACH row IN payments %] |
|
236 |
<tr> |
|
237 |
<td> |
|
238 |
[% IF row.changeable %] |
|
241 | 239 |
[% L.date_tag('datepaid_' _ loop.count, row.datepaid ? row.datepaid : today) %] |
242 |
[%- ELSE %]
|
|
243 |
[% row.datepaid | html %][% L.hidden_tag('datepaid_' _ loop.count, row.datepaid) %] |
|
244 |
[%- END %]
|
|
245 |
</td>
|
|
246 |
<td align=center>
|
|
247 |
[%- IF row.changeable %]
|
|
248 |
<input name="source_[% loop.count %]" size=11 value="[% row.source | html %]">
|
|
249 |
[%- ELSE %]
|
|
250 |
[% row.source | html %]<input type=hidden name="source_[% loop.count %]" value="[% row.source | html %]">
|
|
251 |
[%- END %]
|
|
252 |
</td>
|
|
253 |
<td align=center>
|
|
254 |
[%- IF row.changeable %]
|
|
255 |
<input name="memo_[% loop.count %]" size=11 value="[% row.memo | html %]">
|
|
256 |
[%- ELSE %]
|
|
257 |
[% row.memo | html %]<input type=hidden name="memo_[% loop.count %]" value="[% row.memo | html %]">
|
|
258 |
[%- END %]
|
|
259 |
</td>
|
|
260 |
<td align=center>
|
|
261 |
[%- IF row.changeable %]
|
|
262 |
<input name="paid_[% loop.count %]" size=11 data-validate="number" class="numeric" value="[% row.paid ? LxERP.format_amount(row.paid, 2) : '' | html %]">
|
|
263 |
[%- ELSE %]
|
|
264 |
[% row.paid | html %]<input type=hidden name="paid_[% loop.count %]" value="[% row.paid ? LxERP.format_amount(row.paid, 2) : '' | html %]">
|
|
265 |
[%- END %]
|
|
266 |
</td>
|
|
267 |
<td>
|
|
268 |
[% IF row.changeable && loop.last && paid_missing > 0 %]
|
|
269 |
<input type="button" id="ar_set_to_paid_missing" value="[% "Set to paid missing" | $T8 %]">
|
|
270 |
[% END %]
|
|
271 |
</td>
|
|
272 |
[%- IF show_exch %]
|
|
273 |
<td align=center>
|
|
274 |
[%- IF row.forex || !row.changeable%]
|
|
275 |
<input type=hidden name="exchangerate_[% loop.count %]" value="[%- LxERP.format_amount(row.exchangerate, 5, 1) -%]">[%- LxERP.format_amount(row.exchangerate, 5, 1) -%]
|
|
276 |
[%- ELSE %]
|
|
277 |
<input name="exchangerate_[% loop.count %]" size=10 value="[%- LxERP.format_amount(row.exchangerate, 5, 1) -%]">
|
|
278 |
[%- END %]
|
|
279 |
<input type=hidden name="forex_[% loop.count %]" value='[% row.forex | html %]'>
|
|
280 |
</td>
|
|
281 |
[%- END %]
|
|
282 |
<td align=center>
|
|
283 |
[%- IF row.changeable %]
|
|
240 |
[% ELSE %]
|
|
241 |
[% row.datepaid | html %][% L.hidden_tag('datepaid_' _ loop.count, row.datepaid) %]
|
|
242 |
[% END %]
|
|
243 |
</td> |
|
244 |
<td>
|
|
245 |
[% IF row.changeable %]
|
|
246 |
<input type="text" name="source_[% loop.count %]" size="11" value="[% row.source | html %]">
|
|
247 |
[% ELSE %]
|
|
248 |
[% row.source | html %]<input type="hidden" name="source_[% loop.count %]" value="[% row.source | html %]">
|
|
249 |
[% END %]
|
|
250 |
</td> |
|
251 |
<td>
|
|
252 |
[% IF row.changeable %]
|
|
253 |
<input type="text" name="memo_[% loop.count %]" size="11" value="[% row.memo | html %]">
|
|
254 |
[% ELSE %]
|
|
255 |
[% row.memo | html %]<input type="hidden" name="memo_[% loop.count %]" value="[% row.memo | html %]">
|
|
256 |
[% END %]
|
|
257 |
</td> |
|
258 |
<td class="numeric">
|
|
259 |
[% IF row.changeable %]
|
|
260 |
<input name="paid_[% loop.count %]" value="[% row.paid ? LxERP.format_amount(row.paid, 2) : '' | html %]" type="text" data-validate="number" class="numeric">
|
|
261 |
[% ELSE %]
|
|
262 |
[% row.paid | html %]<input type="hidden" name="paid_[% loop.count %]" value="[% row.paid ? LxERP.format_amount(row.paid, 2) : '' | html %]">
|
|
263 |
[% END %]
|
|
264 |
</td> |
|
265 |
<td> |
|
266 |
[% IF row.changeable && loop.last && paid_missing > 0 %] |
|
267 |
<input type="button" id="ar_set_to_paid_missing" value="[% 'Set to paid missing' | $T8 %]">
|
|
268 |
[% END %] |
|
269 |
</td> |
|
270 |
[% IF show_exch %]
|
|
271 |
<td>
|
|
272 |
[% IF row.forex || !row.changeable%]
|
|
273 |
<input type="hidden" name="exchangerate_[% loop.count %]" value="[% LxERP.format_amount(row.exchangerate, 5, 1) %]">[% LxERP.format_amount(row.exchangerate, 5, 1) %]
|
|
274 |
[% ELSE %]
|
|
275 |
<input type="text" name="exchangerate_[% loop.count %]" size="10" value="[% LxERP.format_amount(row.exchangerate, 5, 1) %]">
|
|
276 |
[% END %]
|
|
277 |
<input type="hidden" name="forex_[% loop.count %]" value="[% row.forex | html %]">
|
|
278 |
</td> |
|
279 |
[% END %]
|
|
280 |
<td>
|
|
281 |
[% IF row.changeable %]
|
|
284 | 282 |
[% row.selectAR_paid %] |
285 |
[%- ELSE %]
|
|
286 |
[% row.AR_paid | html %]<input type=hidden name="AR_paid_[% loop.count %]" value='[% row.AR_paid | html %]'>
|
|
287 |
[%- END %]
|
|
288 |
</td>
|
|
289 |
<td>
|
|
290 |
[%- IF row.changeable %]
|
|
291 |
[% L.select_tag('paid_project_id_' _ loop.count, ALL_PROJECTS, title_key = 'projectnumber', default = row.paid_project_id, with_empty=1) %]
|
|
292 |
[%- ELSE %]
|
|
283 |
[% ELSE %]
|
|
284 |
[% row.AR_paid | html %]<input type="hidden" name="AR_paid_[% loop.count %]" value="[% row.AR_paid | html %]">
|
|
285 |
[% END %]
|
|
286 |
</td> |
|
287 |
<td> |
|
288 |
[% IF row.changeable %]
|
|
289 |
[% L.select_tag('paid_project_id_' _ loop.count, ALL_PROJECTS, title_key='projectnumber', default=row.paid_project_id, with_empty=1, class='wi-small') %]
|
|
290 |
[% ELSE %]
|
|
293 | 291 |
[% project_labels.${row.paid_project_id} | html %] |
294 |
<input type=hidden name="paid_project_id_[% loop.count %]" value='[% row.paid_project_id %]'> |
|
295 |
[%- END %] |
|
296 |
</td> |
|
292 |
<input type="hidden" name="paid_project_id_[% loop.count %]" value="[% row.paid_project_id %]"> |
|
293 |
[% END %] |
|
294 |
<input type="hidden" name="acc_trans_id_[% loop.count %]" value="[% row.acc_trans_id | html %]"> |
|
295 |
<input type="hidden" name="gldate_[% loop.count %]" value="[% row.gldate | html %]"> |
|
296 |
</td> |
|
297 |
</tr> |
|
298 |
[% END %] |
|
299 |
</tbody> |
|
300 |
<tfoot> |
|
301 |
<tr> |
|
302 |
<td></td> |
|
303 |
<td></td> |
|
304 |
<th class="right">[% 'Total' | $T8 %]</th> |
|
305 |
<td class="numeric">[% LxERP.format_amount(totalpaid, 2) | html %]</td> |
|
306 |
<td></td> |
|
307 |
[% IF show_exch %] |
|
308 |
<td></td> |
|
309 |
[% END %] |
|
310 |
<td></td> |
|
311 |
<td></td> |
|
312 |
</tr> |
|
313 |
<tr> |
|
314 |
<td></td> |
|
315 |
<td></td> |
|
316 |
<th class="right">[% 'Missing amount' | $T8 %]</th> |
|
317 |
<td class="numeric"> |
|
318 |
[% LxERP.format_amount(paid_missing, 2) | html %] |
|
319 |
<input type="hidden" name="paidaccounts" value="[% paidaccounts %]"> |
|
320 |
</td> |
|
321 |
<td></td> |
|
322 |
[% IF show_exch %] |
|
323 |
<td></td> |
|
324 |
[% END %] |
|
325 |
<td></td> |
|
326 |
<td></td> |
|
327 |
</tr> |
|
328 |
</tfoot> |
|
329 |
</table> |
|
297 | 330 |
|
298 |
<input type=hidden name="acc_trans_id_[% loop.count %]" value='[% row.acc_trans_id | html %]'> |
|
299 |
<input type=hidden name="gldate_[% loop.count %]" value='[% row.gldate | html %]'> |
|
300 |
</tr> |
|
301 |
[%- END %] |
|
302 |
<tr> |
|
303 |
<td></td> |
|
304 |
<td></td> |
|
305 |
<td align="center">[% 'Total' | $T8 %]</td> |
|
306 |
<td align="center">[% LxERP.format_amount(totalpaid, 2) | html %]</td> |
|
307 |
</tr> |
|
308 |
<tr> |
|
309 |
<td></td> |
|
310 |
<td></td> |
|
311 |
<td align="center">[% 'Missing amount' | $T8 %]</td> |
|
312 |
<td align="center">[% LxERP.format_amount(paid_missing, 2) | html %]</td> |
|
313 |
</tr> |
|
314 |
<input type=hidden name=paidaccounts value='[% paidaccounts %]'> |
|
315 | 331 |
|
316 |
</table> |
|
317 |
</td> |
|
318 |
</tr> |
|
319 |
</table> |
|
320 |
</div> |
|
321 |
</div> |
|
332 |
</div><!-- /#ui-tabs-basic-data --> |
|
333 |
</div><!-- ./tabwidget --> |
|
322 | 334 |
|
323 |
<script type='text/javascript'>
|
|
335 |
<script type="text/javascript">
|
|
324 | 336 |
$('#ar_set_to_paid_missing').click(function(){ $('input[name^="paid_"]:last').val('[% LxERP.format_amount(paid_missing, 2) %]') }); |
325 | 337 |
</script> |
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/ar/form_header.html