Revision 0a82974a
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>[% LxERP.t8('Tax point') %]</th> |
|
147 |
<td>[% L.date_tag('tax_point', tax_point, id='tax_point') %]</td> |
|
148 |
</tr> |
|
149 |
<tr> |
|
150 |
<th align=right nowrap>[% 'Delivery Date' | $T8 %]</th> |
|
151 |
<td>[% L.date_tag('deliverydate', deliverydate) %]</td> |
|
152 |
</tr> |
|
153 |
<tr> |
|
154 |
<th align=right nowrap>[% 'Project Number' | $T8 %]</th> |
|
155 |
<td>[% L.select_tag('globalproject_id', ALL_PROJECTS, title_key = 'projectnumber', default = globalproject_id, with_empty = 1, onChange = "document.getElementById('update_button').click();") %]</td> |
|
156 |
</tr> |
|
157 |
</table> |
|
158 |
</td> |
|
159 |
</tr> |
|
160 |
</table> |
|
161 |
</td> |
|
162 |
</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> |
|
163 | 40 |
|
164 |
[% L.hidden_tag('rowcount', rowcount) %] |
|
165 |
<tr> |
|
166 |
<td> |
|
167 |
<table width=100%> |
|
168 |
<tr class=listheading> |
|
169 |
<th class=listheading style="width:15%">[% 'Account' | $T8 %]</th> |
|
170 |
<th class=listheading style="width:10%">[% 'Amount' | $T8 %]</th> |
|
171 |
<th class=listheading style="width:10%">[% 'Tax' | $T8 %]</th> |
|
172 |
<th class=listheading style="width:5%">[% 'Taxkey' | $T8 %]</th> |
|
173 |
<th class=listheading style="width:10%">[% 'Project' | $T8 %]</th> |
|
174 |
</tr> |
|
175 | 41 |
|
42 |
<div id="ui-tabs-basic-data"> |
|
176 | 43 |
|
177 |
[%- FOREACH row IN transactions %] |
|
178 |
<tr> |
|
179 |
<td>[% row.selectAR_amount %]</td> |
|
180 |
<td>[% L.input_tag('amount_' _ loop.count, LxERP.format_amount(row.amount, 2)) %]</td> |
|
181 |
<td>[% L.hidden_tag('tax_' _ loop.count, LxERP.format_tax(row.tax, 2)) %][% LxERP.format_amount(row.tax, 2) | html %]</td> |
|
182 |
<td>[% row.taxchart %]</td> |
|
183 |
<td>[% L.select_tag('project_id_' _ loop.count, ALL_PROJECTS, title_key = 'projectnumber', default = row.project_id, with_empty = 1) %]</td> |
|
184 |
</tr> |
|
185 |
[%- END %] |
|
44 |
<div class="wrapper"> |
|
186 | 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 %] |
|
187 | 112 |
<tr> |
188 |
<td colspan=6> |
|
189 |
<hr noshade> |
|
190 |
</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> |
|
191 | 115 |
</tr> |
192 |
<tr> |
|
193 |
<td>[% P.chart.picker("AR_chart_id", AR_chart_id, style="width: 400px", type="AR") %]</td> |
|
194 |
<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> |
|
195 | 127 |
|
196 |
<input type=hidden name=oldinvtotal value='[% oldinvtotal %]'> |
|
197 |
<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> |
|
198 | 144 |
|
199 |
<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>[% LxERP.t8('Tax point') %]</th> |
|
170 |
<td>[% L.date_tag('tax_point', tax_point, id='tax_point') %]</td> |
|
171 |
</tr> |
|
172 |
<tr> |
|
173 |
<th>[% 'Delivery Date' | $T8 %]</th> |
|
174 |
<td>[% L.date_tag('deliverydate', deliverydate) %]</td> |
|
175 |
</tr> |
|
176 |
<tr> |
|
177 |
<th>[% 'Project Number' | $T8 %]</th> |
|
178 |
<td>[% L.select_tag('globalproject_id', ALL_PROJECTS, title_key = 'projectnumber', default = globalproject_id, with_empty = 1, onChange = "document.getElementById('update_button').click();") %]</td> |
|
179 |
</tr> |
|
180 |
</tbody> |
|
181 |
</table> |
|
200 | 182 |
|
201 |
<td colspan=4></td>
|
|
183 |
</div><!-- /.wrapper -->
|
|
202 | 184 |
|
185 |
[% L.hidden_tag('rowcount', rowcount) %] |
|
203 | 186 |
|
204 |
</tr> |
|
205 |
</table> |
|
206 |
</td> |
|
187 |
<table class="tbl-list" style="width:90%;"> |
|
188 |
<caption>[% 'Transaction' | $T8 %]</caption> |
|
189 |
<thead> |
|
190 |
<tr> |
|
191 |
<th>[% 'Account' | $T8 %]</th> |
|
192 |
<th class="right">[% 'Amount' | $T8 %]</th> |
|
193 |
<th class="right">[% 'Tax' | $T8 %]</th> |
|
194 |
<th>[% 'Taxkey' | $T8 %]</th> |
|
195 |
<th>[% 'Project' | $T8 %]</th> |
|
207 | 196 |
</tr> |
197 |
</thead> |
|
198 |
<tbody> |
|
199 |
[% FOREACH row IN transactions %] |
|
208 | 200 |
<tr> |
209 |
<td> |
|
210 |
<table width=100%> |
|
211 |
<tr> |
|
212 |
<th align=left width=1%>[% 'Notes' | $T8 %]</th> |
|
213 |
<td align=left><textarea name=notes rows="[% rows %]" cols=50 wrap=soft>[% notes | html %]</textarea></td> |
|
214 |
|
|
215 |
<th align=left width=1%>[% 'Notes for customer' | $T8 %]</th> |
|
216 |
<td align=left><textarea name=intnotes rows="[% rows %]" cols=50 wrap=soft readonly>[% intnotes | html %]</textarea></td> |
|
217 |
</tr> |
|
218 |
</table> |
|
219 |
</td> |
|
220 |
</tr> |
|
221 |
<tr> |
|
222 |
<td> |
|
223 |
<table width=100%> |
|
224 |
<tr class=listheading> |
|
225 |
<th colspan=7 class=listheading>[% 'Incoming Payments' | $T8 %]</th> |
|
226 |
</tr> |
|
201 |
<td>[% row.selectAR_amount %]</td> |
|
202 |
<td class="numeric">[% L.input_tag('amount_' _ loop.count, LxERP.format_amount(row.amount, 2), class='wi-small numeric') %]</td> |
|
203 |
<td class="numeric">[% L.hidden_tag('tax_' _ loop.count, LxERP.format_tax(row.tax, 2)) %][% LxERP.format_amount(row.tax, 2) | html %]</td> |
|
204 |
<td>[% row.taxchart %]</td> |
|
205 |
<td>[% L.select_tag('project_id_' _ loop.count, ALL_PROJECTS, title_key='projectnumber', default=row.project_id, with_empty=1, class="wi-small") %]</td> |
|
206 |
</tr> |
|
207 |
[% END %] |
|
208 |
</tbody> |
|
209 |
<tfoot> |
|
210 |
<tr> |
|
211 |
<td>[% P.chart.picker("AR_chart_id", AR_chart_id, style="width: 400px", type="AR") %]</td> |
|
212 |
<th class="numeric">[% LxERP.format_amount(invtotal, 2) | html %]</th> |
|
213 |
<input type="hidden" name="oldinvtotal" value="[% oldinvtotal %]"> |
|
214 |
<input type="hidden" name="oldtotalpaid" value="[% oldtotalpaid %]"> |
|
215 |
<input type="hidden" name="taxaccounts" value="[% taxaccounts | html %]"> |
|
216 |
<td colspan="3"></td> |
|
217 |
</tr> |
|
218 |
</tfoot> |
|
219 |
</table> |
|
227 | 220 |
|
228 |
<tr> |
|
229 |
<th>[% 'Date' | $T8 %]</th> |
|
230 |
<th>[% 'Source' | $T8 %]</th> |
|
231 |
<th>[% 'Memo' | $T8 %]</th> |
|
232 |
<th>[% 'Amount' | $T8 %]</th> |
|
233 |
<th></th> |
|
234 |
[%- IF show_exch %] |
|
235 |
<th>[% 'Exch' | $T8 %]</th> |
|
236 |
[%- END %] |
|
237 |
<th>[% 'Account' | $T8 %]</th> |
|
238 |
<th>[% 'Project Number' | $T8 %]</th> |
|
239 |
</tr> |
|
240 | 221 |
|
241 |
[%- FOREACH row IN payments %] |
|
242 |
<tr> |
|
243 |
<td align=center> |
|
244 |
[%- IF row.changeable %] |
|
222 |
<table class="tbl-list" style="width:90%;"> |
|
223 |
<caption>[% 'Incoming Payments' | $T8 %]</caption> |
|
224 |
<thead> |
|
225 |
<tr> |
|
226 |
<th>[% 'Date' | $T8 %]</th> |
|
227 |
<th>[% 'Source' | $T8 %]</th> |
|
228 |
<th>[% 'Memo' | $T8 %]</th> |
|
229 |
<th class="right">[% 'Amount' | $T8 %]</th> |
|
230 |
<th></th> |
|
231 |
[% IF show_exch %] |
|
232 |
<th>[% 'Exch' | $T8 %]</th> |
|
233 |
[% END %] |
|
234 |
<th>[% 'Account' | $T8 %]</th> |
|
235 |
<th>[% 'Project Number' | $T8 %]</th> |
|
236 |
</tr> |
|
237 |
</thead> |
|
238 |
<tbody> |
|
239 |
[% FOREACH row IN payments %] |
|
240 |
<tr> |
|
241 |
<td> |
|
242 |
[% IF row.changeable %] |
|
245 | 243 |
[% L.date_tag('datepaid_' _ loop.count, row.datepaid ? row.datepaid : today) %] |
246 |
[%- ELSE %]
|
|
247 |
[% row.datepaid | html %][% L.hidden_tag('datepaid_' _ loop.count, row.datepaid) %] |
|
248 |
[%- END %]
|
|
249 |
</td>
|
|
250 |
<td align=center>
|
|
251 |
[%- IF row.changeable %]
|
|
252 |
<input name="source_[% loop.count %]" size=11 value="[% row.source | html %]">
|
|
253 |
[%- ELSE %]
|
|
254 |
[% row.source | html %]<input type=hidden name="source_[% loop.count %]" value="[% row.source | html %]">
|
|
255 |
[%- END %]
|
|
256 |
</td>
|
|
257 |
<td align=center>
|
|
258 |
[%- IF row.changeable %]
|
|
259 |
<input name="memo_[% loop.count %]" size=11 value="[% row.memo | html %]">
|
|
260 |
[%- ELSE %]
|
|
261 |
[% row.memo | html %]<input type=hidden name="memo_[% loop.count %]" value="[% row.memo | html %]">
|
|
262 |
[%- END %]
|
|
263 |
</td>
|
|
264 |
<td align=center>
|
|
265 |
[%- IF row.changeable %]
|
|
266 |
<input name="paid_[% loop.count %]" size=11 data-validate="number" class="numeric" value="[% row.paid ? LxERP.format_amount(row.paid, 2) : '' | html %]">
|
|
267 |
[%- ELSE %]
|
|
268 |
[% row.paid | html %]<input type=hidden name="paid_[% loop.count %]" value="[% row.paid ? LxERP.format_amount(row.paid, 2) : '' | html %]">
|
|
269 |
[%- END %]
|
|
270 |
</td>
|
|
271 |
<td>
|
|
272 |
[% IF row.changeable && loop.last && paid_missing > 0 %]
|
|
273 |
<input type="button" id="ar_set_to_paid_missing" value="[% "Set to paid missing" | $T8 %]">
|
|
274 |
[% END %]
|
|
275 |
</td>
|
|
276 |
[%- IF show_exch %]
|
|
277 |
<td align=center>
|
|
278 |
[%- IF row.forex || !row.changeable%]
|
|
279 |
<input type=hidden name="exchangerate_[% loop.count %]" value="[%- LxERP.format_amount(row.exchangerate, 5, 1) -%]">[%- LxERP.format_amount(row.exchangerate, 5, 1) -%]
|
|
280 |
[%- ELSE %]
|
|
281 |
<input name="exchangerate_[% loop.count %]" size=10 value="[%- LxERP.format_amount(row.exchangerate, 5, 1) -%]">
|
|
282 |
[%- END %]
|
|
283 |
<input type=hidden name="forex_[% loop.count %]" value='[% row.forex | html %]'>
|
|
284 |
</td>
|
|
285 |
[%- END %]
|
|
286 |
<td align=center>
|
|
287 |
[%- IF row.changeable %]
|
|
244 |
[% ELSE %]
|
|
245 |
[% row.datepaid | html %][% L.hidden_tag('datepaid_' _ loop.count, row.datepaid) %]
|
|
246 |
[% END %]
|
|
247 |
</td> |
|
248 |
<td>
|
|
249 |
[% IF row.changeable %]
|
|
250 |
<input type="text" name="source_[% loop.count %]" size="11" value="[% row.source | html %]">
|
|
251 |
[% ELSE %]
|
|
252 |
[% row.source | html %]<input type="hidden" name="source_[% loop.count %]" value="[% row.source | html %]">
|
|
253 |
[% END %]
|
|
254 |
</td> |
|
255 |
<td>
|
|
256 |
[% IF row.changeable %]
|
|
257 |
<input type="text" name="memo_[% loop.count %]" size="11" value="[% row.memo | html %]">
|
|
258 |
[% ELSE %]
|
|
259 |
[% row.memo | html %]<input type="hidden" name="memo_[% loop.count %]" value="[% row.memo | html %]">
|
|
260 |
[% END %]
|
|
261 |
</td> |
|
262 |
<td class="numeric">
|
|
263 |
[% IF row.changeable %]
|
|
264 |
<input name="paid_[% loop.count %]" value="[% row.paid ? LxERP.format_amount(row.paid, 2) : '' | html %]" type="text" data-validate="number" class="numeric">
|
|
265 |
[% ELSE %]
|
|
266 |
[% row.paid | html %]<input type="hidden" name="paid_[% loop.count %]" value="[% row.paid ? LxERP.format_amount(row.paid, 2) : '' | html %]">
|
|
267 |
[% END %]
|
|
268 |
</td> |
|
269 |
<td> |
|
270 |
[% IF row.changeable && loop.last && paid_missing > 0 %] |
|
271 |
<input type="button" id="ar_set_to_paid_missing" value="[% 'Set to paid missing' | $T8 %]">
|
|
272 |
[% END %] |
|
273 |
</td> |
|
274 |
[% IF show_exch %]
|
|
275 |
<td>
|
|
276 |
[% IF row.forex || !row.changeable%]
|
|
277 |
<input type="hidden" name="exchangerate_[% loop.count %]" value="[% LxERP.format_amount(row.exchangerate, 5, 1) %]">[% LxERP.format_amount(row.exchangerate, 5, 1) %]
|
|
278 |
[% ELSE %]
|
|
279 |
<input type="text" name="exchangerate_[% loop.count %]" size="10" value="[% LxERP.format_amount(row.exchangerate, 5, 1) %]">
|
|
280 |
[% END %]
|
|
281 |
<input type="hidden" name="forex_[% loop.count %]" value="[% row.forex | html %]">
|
|
282 |
</td> |
|
283 |
[% END %]
|
|
284 |
<td>
|
|
285 |
[% IF row.changeable %]
|
|
288 | 286 |
[% row.selectAR_paid %] |
289 |
[%- ELSE %]
|
|
290 |
[% row.AR_paid | html %]<input type=hidden name="AR_paid_[% loop.count %]" value='[% row.AR_paid | html %]'>
|
|
291 |
[%- END %]
|
|
292 |
</td>
|
|
293 |
<td>
|
|
294 |
[%- IF row.changeable %]
|
|
295 |
[% L.select_tag('paid_project_id_' _ loop.count, ALL_PROJECTS, title_key = 'projectnumber', default = row.paid_project_id, with_empty=1) %]
|
|
296 |
[%- ELSE %]
|
|
287 |
[% ELSE %]
|
|
288 |
[% row.AR_paid | html %]<input type="hidden" name="AR_paid_[% loop.count %]" value="[% row.AR_paid | html %]">
|
|
289 |
[% END %]
|
|
290 |
</td> |
|
291 |
<td> |
|
292 |
[% IF row.changeable %]
|
|
293 |
[% L.select_tag('paid_project_id_' _ loop.count, ALL_PROJECTS, title_key='projectnumber', default=row.paid_project_id, with_empty=1, class='wi-small') %]
|
|
294 |
[% ELSE %]
|
|
297 | 295 |
[% project_labels.${row.paid_project_id} | html %] |
298 |
<input type=hidden name="paid_project_id_[% loop.count %]" value='[% row.paid_project_id %]'> |
|
299 |
[%- END %] |
|
300 |
</td> |
|
296 |
<input type="hidden" name="paid_project_id_[% loop.count %]" value="[% row.paid_project_id %]"> |
|
297 |
[% END %] |
|
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 |
</td> |
|
301 |
</tr> |
|
302 |
[% END %] |
|
303 |
</tbody> |
|
304 |
<tfoot> |
|
305 |
<tr> |
|
306 |
<td></td> |
|
307 |
<td></td> |
|
308 |
<th class="right">[% 'Total' | $T8 %]</th> |
|
309 |
<td class="numeric">[% LxERP.format_amount(totalpaid, 2) | html %]</td> |
|
310 |
<td></td> |
|
311 |
[% IF show_exch %] |
|
312 |
<td></td> |
|
313 |
[% END %] |
|
314 |
<td></td> |
|
315 |
<td></td> |
|
316 |
</tr> |
|
317 |
<tr> |
|
318 |
<td></td> |
|
319 |
<td></td> |
|
320 |
<th class="right">[% 'Missing amount' | $T8 %]</th> |
|
321 |
<td class="numeric"> |
|
322 |
[% LxERP.format_amount(paid_missing, 2) | html %] |
|
323 |
<input type="hidden" name="paidaccounts" value="[% paidaccounts %]"> |
|
324 |
</td> |
|
325 |
<td></td> |
|
326 |
[% IF show_exch %] |
|
327 |
<td></td> |
|
328 |
[% END %] |
|
329 |
<td></td> |
|
330 |
<td></td> |
|
331 |
</tr> |
|
332 |
</tfoot> |
|
333 |
</table> |
|
301 | 334 |
|
302 |
<input type=hidden name="acc_trans_id_[% loop.count %]" value='[% row.acc_trans_id | html %]'> |
|
303 |
<input type=hidden name="gldate_[% loop.count %]" value='[% row.gldate | html %]'> |
|
304 |
</tr> |
|
305 |
[%- END %] |
|
306 |
<tr> |
|
307 |
<td></td> |
|
308 |
<td></td> |
|
309 |
<td align="center">[% 'Total' | $T8 %]</td> |
|
310 |
<td align="center">[% LxERP.format_amount(totalpaid, 2) | html %]</td> |
|
311 |
</tr> |
|
312 |
<tr> |
|
313 |
<td></td> |
|
314 |
<td></td> |
|
315 |
<td align="center">[% 'Missing amount' | $T8 %]</td> |
|
316 |
<td align="center">[% LxERP.format_amount(paid_missing, 2) | html %]</td> |
|
317 |
</tr> |
|
318 |
<input type=hidden name=paidaccounts value='[% paidaccounts %]'> |
|
319 | 335 |
|
320 |
</table> |
|
321 |
</td> |
|
322 |
</tr> |
|
323 |
</table> |
|
324 |
</div> |
|
325 |
</div> |
|
336 |
</div><!-- /#ui-tabs-basic-data --> |
|
337 |
</div><!-- ./tabwidget --> |
|
326 | 338 |
|
327 |
<script type='text/javascript'>
|
|
339 |
<script type="text/javascript">
|
|
328 | 340 |
$('#ar_set_to_paid_missing').click(function(){ $('input[name^="paid_"]:last').val('[% LxERP.format_amount(paid_missing, 2) %]') }); |
329 | 341 |
</script> |
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/ar/form_header.html