Revision 7797f9ae
Von Hans P. Schlaepfer vor etwa 4 Jahren hinzugefügt
templates/webpages/ap/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 | 11 |
<form method="post" action="[% script | html %]" id="form"> |
12 | 12 |
|
13 | 13 |
<input type="hidden" name="terms" value="[% terms | html %]"> |
14 |
|
|
15 | 14 |
<input type="hidden" name="creditlimit" value="[% creditlimit | html %]"> |
16 | 15 |
<input type="hidden" name="creditremaining" value="[% creditremaining | html %]"> |
17 |
|
|
18 | 16 |
<input type="hidden" name="forex" value="[% forex | html %]"> |
19 | 17 |
<input type="hidden" name="lastmtime" value="[% HTML.escape(lastmtime) %]"> |
20 |
|
|
21 | 18 |
<input type="hidden" name="id" value="[% id | html %]"> |
22 | 19 |
<input type="hidden" name="sort" value="[% sort | html %]"> |
23 | 20 |
<input type="hidden" name="closedto" value="[% closedto | html %]"> |
24 | 21 |
<input type="hidden" name="locked" value="[% locked | html %]"> |
25 | 22 |
<input type="hidden" name="title" value="[% title_ | html %]"> |
26 |
|
|
27 | 23 |
<input type="hidden" name="follow_up_trans_id_1" value="[% id | html %]"> |
28 | 24 |
<input type="hidden" name="follow_up_trans_type_1" value="ap_transaction"> |
29 | 25 |
<input type="hidden" name="follow_up_trans_info_1" value="[% follow_up_trans_info | html %]"> |
30 | 26 |
<input type="hidden" name="follow_up_rowcount" value="1"> |
31 |
|
|
32 | 27 |
<input type="hidden" name="defaultcurrency" value="[% defaultcurrency | html %]"> |
33 | 28 |
<input type="hidden" name="fxgain_accno" value="[% fxgain_accno | html %]"> |
34 | 29 |
<input type="hidden" name="fxloss_accno" value="[% fxloss_accno | html %]"> |
35 |
|
|
36 | 30 |
<input type="hidden" name="oldinvtotal" value="[% oldinvtotal | html %]"> |
37 | 31 |
<input type="hidden" name="oldtotalpaid" value="[% oldtotalpaid | html %]"> |
38 |
|
|
39 | 32 |
<input type="hidden" name="taxaccounts" value="[% taxaccounts | html %]"> |
40 |
|
|
41 | 33 |
<input type="hidden" name="rowcount" value="[% rowcount | html %]"> |
42 |
|
|
43 | 34 |
<input type="hidden" name="paidaccounts" value="[% paidaccounts | html %]"> |
44 | 35 |
|
45 |
[%- P.hidden_tag('convert_from_oe_id', convert_from_oe_id) -%]
|
|
36 |
[% P.hidden_tag('convert_from_oe_id', convert_from_oe_id) %]
|
|
46 | 37 |
|
47 | 38 |
[% FOREACH i IN [1..paidaccounts] %] |
48 | 39 |
[% temp = "acc_trans_id_"_ i %] |
49 | 40 |
<input type="hidden" name="[% temp %]" value="[% $temp | html %]"> |
50 |
|
|
51 | 41 |
[% temp = "gldate_"_ i %] |
52 | 42 |
<input type="hidden" name="[% temp %]" value="[% $temp | html %]"> |
53 | 43 |
[% END %] |
54 | 44 |
|
45 |
|
|
55 | 46 |
[% IF ( saved_message ) %] |
56 | 47 |
<p>[% saved_message | html %]</p> |
57 | 48 |
[% END %] |
58 | 49 |
|
59 | 50 |
<div id="ap_tabs" class="tabwidget"> |
60 |
<ul> |
|
51 |
|
|
52 |
<ul> |
|
61 | 53 |
<li><a href="#ui-tabs-basic-data">[% 'Basic Data' | $T8 %]</a></li> |
62 |
[%- IF INSTANCE_CONF.get_webdav %]
|
|
63 |
<li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li> |
|
64 |
[%- END %]
|
|
65 |
[%- IF id AND INSTANCE_CONF.get_doc_storage %]
|
|
66 |
<li><a href="controller.pl?action=File/list&file_type=document&object_type=purchase_invoice&object_id=[% HTML.url(id) %]">[% 'Documents' | $T8 %]</a></li>
|
|
67 |
<li><a href="controller.pl?action=File/list&file_type=attachment&object_type=purchase_invoice&object_id=[% HTML.url(id) %]">[% 'Attachments' | $T8 %]</a></li>
|
|
68 |
[%- END %]
|
|
69 |
[%- IF id %]
|
|
70 |
[%- IF AUTH.assert('record_links', 1) %]
|
|
54 |
[% IF INSTANCE_CONF.get_webdav %]
|
|
55 |
<li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li>
|
|
56 |
[% END %]
|
|
57 |
[% IF id AND INSTANCE_CONF.get_doc_storage %]
|
|
58 |
<li><a href="controller.pl?action=File/list&file_type=document&object_type=purchase_invoice&object_id=[% HTML.url(id) %]">[% 'Documents' | $T8 %]</a></li> |
|
59 |
<li><a href="controller.pl?action=File/list&file_type=attachment&object_type=purchase_invoice&object_id=[% HTML.url(id) %]">[% 'Attachments' | $T8 %]</a></li> |
|
60 |
[% END %]
|
|
61 |
[% IF id %]
|
|
62 |
[% IF AUTH.assert('record_links', 1) %]
|
|
71 | 63 |
<li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=PurchaseInvoice&object_id=[% HTML.url(id) %]">[% 'Linked Records' | $T8 %]</a></li> |
72 |
[%- END %]
|
|
64 |
[% END %]
|
|
73 | 65 |
<li><a href="[% 'controller.pl?action=AccTrans/list_transactions&trans_id=' _ HTML.url(id) | html %]">[% LxERP.t8('Transactions') %]</a></li> |
74 |
[%- END %]
|
|
75 |
</ul>
|
|
66 |
[% END %]
|
|
67 |
</ul> |
|
76 | 68 |
|
77 | 69 |
<div id="ui-tabs-basic-data"> |
78 |
<table width="100%"> |
|
79 |
<tr valign="top"> |
|
80 |
<td> |
|
81 |
<table width="100%"> |
|
82 |
<tr valign="top"> |
|
83 |
<td> |
|
84 |
<table> |
|
85 |
<tr> |
|
86 |
<th align="right" nowrap>[% 'Vendor' | $T8 %]</th> |
|
87 |
<td colspan="3"> |
|
88 |
[% P.customer_vendor.picker("vendor_id", vendor_id, type="vendor", style="width: 300px", onchange="\$('#update_button').click()") %] |
|
89 |
[% L.button_tag("show_vc_details('vendor')", LxERP.t8('Details (one letter abbreviation)')) %] |
|
90 |
[% L.hidden_tag("previous_vendor_id", vendor_id) %] |
|
91 |
</td> |
|
92 |
</tr> |
|
93 |
|
|
94 |
<tr> |
|
95 |
<th align="right" valign="top">[% LxERP.t8("Credit Limit") %]</th> |
|
96 |
<td> |
|
97 |
[% creditlimit | html %]; |
|
98 |
[% LxERP.t8("Remaining") %] |
|
99 |
<span class="plus[% creditremaining_plus %]">[% creditremaining | html %]</span> |
|
100 |
</td> |
|
101 |
</tr> |
|
102 |
|
|
103 |
[%- IF invoice_obj.sepa_exports.as_list.size %] |
|
104 |
<tr> |
|
105 |
<th align="right">[% LxERP.t8("SEPA exports") %]</th> |
|
106 |
<td> |
|
107 |
[% FOREACH export = invoice_obj.sepa_exports.as_list %] |
|
108 |
<a href="sepa.pl?action=bank_transfer_edit&vc=vendor&id=[% HTML.url(export.id) %]">[% HTML.escape(export.id) %]</a> |
|
109 |
[% UNLESS loop.last %], [% END %] |
|
110 |
[% END %] |
|
111 |
</td> |
|
112 |
</tr> |
|
113 |
[%- END %] |
|
114 | 70 |
|
115 |
<tr> |
|
116 |
<th align="right" nowrap>[% 'Currency' | $T8 %]</th> |
|
117 |
<td>[% L.select_tag("currency", currencies, default=currency, value_key="name", title_key="name") %]</td> |
|
71 |
<div class="wrapper"> |
|
118 | 72 |
|
119 |
[% IF ( defaultcurrency && (currency != defaultcurrency) ) %] |
|
120 |
<th align=right>[% 'Exchangerate' | $T8 %]</th> |
|
121 |
[% IF ( forex ) %] |
|
122 |
<td><input type="hidden" name="exchangerate" value="[% exchangerate | html %]">[% exchangerate | html %]</td> |
|
123 |
[% ELSE %] |
|
124 |
<td><input type="text" name="exchangerate" size="10" value="[% exchangerate | html %]"></td> |
|
125 |
[% END %] |
|
126 |
[% END %] |
|
73 |
<table class="tbl-horizontal"> |
|
74 |
<caption>[% 'Vendor & Order' | $T8 %]</caption> |
|
75 |
<colgroup> <col class="wi-mediumsmall"><col class="wi-lightwide"> </colgroup> |
|
76 |
<tbody> |
|
77 |
<tr> |
|
78 |
<th>[% 'Vendor' | $T8 %]</th> |
|
79 |
<td class="wi-lightwide">[% P.customer_vendor.picker("vendor_id", vendor_id, type="vendor", onchange="\$('#update_button').click()") %][% L.button_tag("show_vc_details('vendor')", LxERP.t8('Details (one letter abbreviation)'), class='wi-tiny neutral') %] [% L.hidden_tag("previous_vendor_id", vendor_id) %] </td> |
|
80 |
</tr> |
|
81 |
<tr> |
|
82 |
<th>[% LxERP.t8("Credit Limit") %]</th> |
|
83 |
<td><span class="data wi-lightwide">[% creditlimit | html %], [% LxERP.t8("Remaining") %] <span class="plus[% creditremaining_plus %]">[% creditremaining | html %]</span></span> </td> |
|
84 |
</tr> |
|
85 |
[% IF invoice_obj.sepa_exports.as_list.size %] |
|
86 |
<tr> |
|
87 |
<th>[% LxERP.t8("SEPA exports") %]</th> |
|
88 |
<td> [% FOREACH export = invoice_obj.sepa_exports.as_list %] <a href="sepa.pl?action=bank_transfer_edit&vc=vendor&id=[% HTML.url(export.id) %]">[% HTML.escape(export.id) %]</a> [% UNLESS loop.last %], [% END %] [% END %] </td> |
|
89 |
</tr> |
|
90 |
[% END %] |
|
91 |
<tr> |
|
92 |
<th>[% 'Currency' | $T8 %]</th> |
|
93 |
<th> |
|
94 |
[% L.select_tag("currency", currencies, default=currency, value_key="name", title_key="name", class="wi-small") %] |
|
95 |
[% IF ( defaultcurrency && (currency != defaultcurrency) ) %] |
|
96 |
[% 'Exchangerate' | $T8 %] |
|
97 |
[% IF ( forex ) %] |
|
98 |
<input type="hidden" name="exchangerate" value="[% exchangerate | html %]"> |
|
99 |
[% exchangerate | html %] |
|
100 |
[% ELSE %] |
|
101 |
<input type="text" name="exchangerate" size="10" value="[% exchangerate | html %]"> |
|
102 |
[% END %] |
|
103 |
[% END %] |
|
104 |
</th> |
|
105 |
</tr> |
|
106 |
[% IF ALL_DEPARTMENTS %] |
|
107 |
<tr> |
|
108 |
<th>[% 'Department' | $T8 %]</th> |
|
109 |
<td>[% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, class='wi-lightwide') %]</td> |
|
110 |
</tr> |
|
111 |
[% END %] |
|
112 |
<tr> |
|
113 |
<th>[% 'Tax Included' | $T8 %]</th> |
|
114 |
<th><input name="taxincluded" type="checkbox" value="1" [% if ( taxincluded ) %]checked[% end %]></th> |
|
115 |
</tr> |
|
116 |
<tr> |
|
117 |
<th>[% 'direct debit' | $T8 %]</th> |
|
118 |
<th><input name="direct_debit" type="checkbox" value="1" [% if (direct_debit) %]checked[% end %]> </th> |
|
119 |
</tr> |
|
120 |
</tbody> |
|
121 |
</table> |
|
127 | 122 |
|
128 |
</tr> |
|
123 |
<table class="tbl-horizontal"> |
|
124 |
<caption>[% 'Notes' | $T8 %]</caption> |
|
125 |
<colgroup> <col class="wi-small"><col class="wi-wide"> </colgroup> |
|
126 |
<tbody> |
|
127 |
<tr> |
|
128 |
<td> |
|
129 |
[% L.textarea_tag("notes", notes, wrap="soft", rows=textarea_rows, cols=50, readonly=readonly) %] |
|
130 |
</td> |
|
131 |
</tr> |
|
132 |
<tr> |
|
133 |
<td> |
|
134 |
<span class="label above">[% 'Internal Notes' | $T8 %]</span> |
|
135 |
[% L.textarea_tag("intnotes", intnotes, wrap="soft", rows=textarea_rows, cols=50, readonly=readonly) %] |
|
136 |
</td> |
|
137 |
</tr> |
|
138 |
<tr> |
|
139 |
<td> |
|
140 |
<span class="label above">[% 'Payment Terms' | $T8 %]</span> |
|
141 |
[% L.select_tag('payment_id', payment_terms, default=payment_id, title_key='description', with_empty=1, style="width: 250px", onchange="kivi.SalesPurchase.set_duedate_on_reference_date_change('invdate')") %] |
|
142 |
</td> |
|
143 |
</tr> |
|
144 |
</tbody> |
|
145 |
</table> |
|
129 | 146 |
|
130 |
[% IF ALL_DEPARTMENTS %] |
|
131 |
<tr> |
|
132 |
<th align="right" nowrap>[% 'Department' | $T8 %]</th> |
|
133 |
<td colspan=3>[% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1) %]</td> |
|
134 |
</tr> |
|
135 |
[% END %] |
|
147 |
<table class="tbl-horizontal"> |
|
148 |
<caption>[% 'Number & Dates' | $T8 %]</caption> |
|
149 |
<tbody> |
|
150 |
<tr> |
|
151 |
<th>[% 'Invoice Number' | $T8 %]</th> |
|
152 |
<td>[% L.input_tag("invnumber", invnumber, size="11", readonly=readonly) %]</td> |
|
153 |
</tr> |
|
154 |
<tr> |
|
155 |
<th>[% 'Order Number' | $T8 %]</th> |
|
156 |
<td>[% L.input_tag("ordnumber", ordnumber, size="11", readonly=readonly) %]</td> |
|
157 |
</tr> |
|
158 |
<tr> |
|
159 |
<th>[% 'Invoice Date' | $T8 %]</th> |
|
160 |
<td>[% L.date_tag('transdate', transdate) %]</td> |
|
161 |
</tr> |
|
162 |
<tr> |
|
163 |
<th>[% 'Due Date' | $T8 %]</th> |
|
164 |
<td>[% L.date_tag('duedate', duedate) %]</td> |
|
165 |
</tr> |
|
166 |
<tr> |
|
167 |
<th>[% 'Tax point' | $T8 %]</th> |
|
168 |
<td>[% L.date_tag('tax_point', tax_point, id='tax_point') %]</td> |
|
169 |
</tr> |
|
170 |
<tr> |
|
171 |
<th>[% 'Delivery Date' | $T8 %]</th> |
|
172 |
<td>[% L.date_tag('deliverydate', deliverydate) %]</td> |
|
173 |
</tr> |
|
174 |
<tr> |
|
175 |
<th>[% 'Project Number' | $T8 %]</th> |
|
176 |
<td>[% P.project.picker('globalproject_id', globalproject_id, onchange="document.getElementById('update_button').click();") %]</td> |
|
177 |
</tr> |
|
178 |
</tbody> |
|
179 |
</table> |
|
136 | 180 |
|
137 |
<tr> |
|
138 |
<td align="right"><input name="taxincluded" class="checkbox" type="checkbox" value="1" [% IF ( taxincluded ) %]checked[% END %]></td> |
|
139 |
<th align=left nowrap>[% 'Tax Included' | $T8 %]</th> |
|
140 |
</tr> |
|
141 |
<tr> |
|
142 |
<td align="right"><input name="direct_debit" class="checkbox" type="checkbox" value="1" [% IF direct_debit %]checked[% END %]></td> |
|
143 |
<th align="left" nowrap>[% 'direct debit' | $T8 %]</th> |
|
144 |
</tr> |
|
145 |
</table> |
|
146 |
</td> |
|
181 |
</div><!-- /.wrapper --> |
|
147 | 182 |
|
148 |
<td align="right"> |
|
149 |
<table> |
|
150 |
<tr> |
|
151 |
<th align="right" nowrap>[% 'Invoice Number' | $T8 %]</th> |
|
152 |
<td>[% L.input_tag("invnumber", invnumber, size="11", readonly=readonly) %]</td> |
|
153 |
</tr> |
|
154 |
<tr> |
|
155 |
<th align="right" nowrap>[% 'Order Number' | $T8 %]</th> |
|
156 |
<td>[% L.input_tag("ordnumber", ordnumber, size="11", readonly=readonly) %]</td> |
|
157 |
</tr> |
|
158 |
<tr> |
|
159 |
<th align="right" nowrap>[% 'Invoice Date' | $T8 %]</th> |
|
160 |
<td>[% L.date_tag('transdate', transdate) %]</td> |
|
161 |
</tr> |
|
162 |
<tr> |
|
163 |
<th align="right" nowrap>[% 'Due Date' | $T8 %]</th> |
|
164 |
<td>[% L.date_tag('duedate', duedate) %]</td> |
|
165 |
</tr> |
|
166 |
<tr> |
|
167 |
<th align="right" nowrap>[% LxERP.t8('Tax point') %]</th> |
|
168 |
<td>[% L.date_tag('tax_point', tax_point, id='tax_point') %]</td> |
|
169 |
</tr> |
|
170 |
<tr> |
|
171 |
<th align=right nowrap>[% 'Delivery Date' | $T8 %]</th> |
|
172 |
<td>[% L.date_tag('deliverydate', deliverydate) %]</td> |
|
173 |
</tr> |
|
174 |
<tr> |
|
175 |
<th align="right" nowrap>[% 'Project Number' | $T8 %]</th> |
|
176 |
<td> |
|
177 |
[% P.project.picker('globalproject_id', globalproject_id, onchange="document.getElementById('update_button').click();") %] |
|
178 |
</td> |
|
179 |
</tr> |
|
180 |
</table> |
|
181 |
</td> |
|
182 |
</tr> |
|
183 |
</table> |
|
184 |
</td> |
|
185 |
</tr> |
|
183 |
<div class="wrapper"> |
|
186 | 184 |
|
187 |
<tr> |
|
188 |
<td> |
|
189 |
<table width=100%> |
|
190 |
<tr class=listheading> |
|
191 |
<th class=listheading style="width:15%">[% 'Account' | $T8 %]</th> |
|
192 |
<th class=listheading style="width:10%">[% 'Amount' | $T8 %]</th> |
|
193 |
<th class=listheading style="width:10%">[% 'Tax' | $T8 %]</th> |
|
194 |
<th class=listheading style="width:10%">[% 'Taxkey' | $T8 %]</th> |
|
195 |
<th class=listheading style="width:10%">[% 'Project' | $T8 %]</th> |
|
196 |
</tr> |
|
185 |
<table class="tbl-list"> |
|
186 |
<caption>[% 'Transactions' | $T8 %]</caption> |
|
187 |
<thead> |
|
188 |
<tr> |
|
189 |
<th>[% 'Account' | $T8 %]</th> |
|
190 |
<th class="right">[% 'Amount' | $T8 %]</th> |
|
191 |
<th class="right">[% 'Tax' | $T8 %]</th> |
|
192 |
<th>[% 'Taxkey' | $T8 %]</th> |
|
193 |
<th>[% 'Project' | $T8 %]</th> |
|
194 |
</tr> |
|
195 |
</thead> |
|
196 |
<tbody> |
|
197 |
[% FOREACH i IN [1..rowcount] %] |
|
198 |
<tr> |
|
199 |
<td class="wi-wide"> |
|
200 |
[% SET selected_chart_id = "AP_amount_chart_id_"_ i %] |
|
201 |
[% P.chart.picker("AP_amount_chart_id_" _ i, $selected_chart_id, type="AP_amount", class=(initial_focus == 'row_' _ i ? "initial_focus wi-wide" : "wi-wide") ) %] |
|
202 |
[% L.hidden_tag("previous_AP_amount_chart_id_" _ i, $selected_chart_id) %] |
|
203 |
<input type="hidden" name="tax_[% i %]" value="[% temp = " tax"_ i %][% $temp | html %]"> |
|
204 |
</td> |
|
205 |
<td class="numeric"> |
|
206 |
<input type="text" name="amount_[% i %]" size="10" value="[% temp = " amount_"_ i %][% $temp | html %]" class="numeric wi-small"> |
|
207 |
</td> |
|
208 |
<td class="numeric">[% temp = "tax_"_ i %][% $temp | html %]</td> |
|
209 |
<td> |
|
210 |
[% temp = 'selected_taxchart_'_ i %] [% taxcharts = 'taxcharts_' _ i %] |
|
211 |
[% L.select_tag('taxchart_'_ i, $taxcharts, value_title_sub = \taxchart_value_title_sub, default = $temp, class='wi-lightwide') %] |
|
212 |
</td> |
|
213 |
<td> |
|
214 |
[% temp = "project_id_"_ i %] |
|
215 |
[% P.project.picker(temp, loop.last ? globalproject_id : $temp) %] |
|
216 |
</td> |
|
217 |
</tr> |
|
218 |
[% END %] |
|
219 |
</tbody> |
|
220 |
<tfoot> |
|
221 |
<tr> |
|
222 |
<td class="wi-wide">[% P.chart.picker('AP_chart_id', AP_chart_id, class="wi-wide", type="AP") %] </td> |
|
223 |
<td class="numeric">[% invtotal | html %]</td> |
|
224 |
<td colspan="3"></td> |
|
225 |
</tr> |
|
226 |
</tfoot> |
|
227 |
</table> |
|
197 | 228 |
|
198 |
[% FOREACH i IN [1..rowcount] %] |
|
199 |
<tr> |
|
200 |
<td> |
|
201 |
[% SET selected_chart_id = "AP_amount_chart_id_"_ i %] |
|
202 |
[% P.chart.picker("AP_amount_chart_id_" _ i, $selected_chart_id, style="width: 400px", type="AP_amount", class=(initial_focus == 'row_' _ i ? "initial_focus" : "")) %] |
|
203 |
[% L.hidden_tag("previous_AP_amount_chart_id_" _ i, $selected_chart_id) %] |
|
204 |
<input type="hidden" name="tax_[% i %]" value="[% temp = "tax"_ i %][% $temp | html %]"> |
|
205 |
</td> |
|
206 |
<td> |
|
207 |
<input name="amount_[% i %]" size="10" value="[% temp = "amount_"_ i %][% $temp | html %]"> |
|
208 |
</td> |
|
209 |
<td> |
|
210 |
[% temp = "tax_"_ i %][% $temp | html %] |
|
211 |
</td> |
|
212 |
<td> |
|
213 |
[% temp = 'selected_taxchart_'_ i %] |
|
214 |
[% taxcharts = 'taxcharts_' _ i %] |
|
215 |
[% L.select_tag('taxchart_'_ i, $taxcharts, value_title_sub = \taxchart_value_title_sub, default = $temp, style="width: 250px") %] |
|
216 |
</td> |
|
217 |
<td> |
|
218 |
[% temp = "project_id_"_ i %] |
|
219 |
[% P.project.picker(temp, loop.last ? globalproject_id : $temp) %] |
|
220 |
</td> |
|
221 |
</tr> |
|
229 |
[% UNLESS no_payment_bookings %] |
|
230 |
<table class="tbl-list"> |
|
231 |
<caption>[% 'Payments' | $T8 %]</caption> |
|
232 |
<thead> |
|
233 |
<tr> |
|
234 |
<th>[% 'Date' | $T8 %]</th> |
|
235 |
<th>[% 'Source' | $T8 %]</th> |
|
236 |
<th>[% 'Memo' | $T8 %]</th> |
|
237 |
<th>[% 'Amount' | $T8 %]</th> |
|
238 |
<th></th> |
|
239 |
[% IF ( !defaultcurrency || (currency != defaultcurrency) ) %] |
|
240 |
<th>[% 'Exch' | $T8 %]</th> |
|
222 | 241 |
[% END %] |
223 |
|
|
224 |
<tr> |
|
225 |
<td colspan="6"> |
|
226 |
<hr noshade> |
|
227 |
</td> |
|
228 |
</tr> |
|
229 |
<tr> |
|
242 |
<th>[% 'Account' | $T8 %]</th> |
|
243 |
<th>[% 'Project Number' | $T8 %]</th> |
|
244 |
</tr> |
|
245 |
</thead> |
|
246 |
<tbody> |
|
247 |
[% FOREACH i IN [1..paidaccounts] %] [% temp = "paidaccount_changeable_"_ i %] [% changeable = $temp %] |
|
248 |
<tr> |
|
249 |
[% temp = "datepaid_"_ i %] |
|
250 |
<td> |
|
251 |
[% IF( changeable ) %] [% L.date_tag(temp, $temp ? $temp : today) %] |
|
252 |
[% ELSE %] [% $temp | html %] <input type="hidden" name="[% temp %]" value="[% $temp | html %]"> [% END %] |
|
253 |
</td> |
|
254 |
<td> |
|
255 |
[% temp = "source_"_ i %] |
|
256 |
[% IF( changeable ) %] <input type="text" name="[% temp %]" size="11" value="[% $temp | html %]"> |
|
257 |
[% ELSE %] [% $temp | html %] <input type="hidden" name="[% temp %]" value="[% $temp | html %]">[% END %] |
|
258 |
</td> |
|
259 |
<td> |
|
260 |
[% temp = "memo_"_ i %] |
|
261 |
[% IF( changeable ) %] <input type="text" name="[% temp %]" size="11" value="[% $temp | html %]"> |
|
262 |
[% ELSE %] [% $temp | html %] <input type="hidden" name="[% temp %]" value="[% $temp | html %]"> [% END %] |
|
263 |
</td> |
|
264 |
<td> |
|
265 |
[% temp = "paid_"_ i %] |
|
266 |
[% IF( changeable ) %] |
|
267 |
<input name="[% temp %]" data-validate="number" value="[% $temp | html %]" id="[%- 'payment_' _ temp -%]" size="11" class="numeric"> |
|
268 |
[% ELSE %] |
|
269 |
[% $temp | html %] |
|
270 |
<input type="hidden" name="[% temp %]" value="[% $temp | html %]"> |
|
271 |
[% END %] |
|
272 |
</td> |
|
273 |
<td> |
|
274 |
[% IF changeable && loop.last && paid_missing > 0 %] <input type="button" id="ap_set_to_paid_missing" value="[% " set to paid missing" | $t8 %]"> [% END %] |
|
275 |
</td> |
|
276 |
[% IF ( !defaultcurrency || (currency != defaultcurrency) ) %] |
|
230 | 277 |
<td> |
231 |
[% P.chart.picker('AP_chart_id', AP_chart_id, style="width: 400px", type="AP") %] |
|
278 |
[% temp = "exchangerate_"_ i %] |
|
279 |
[% temp_forex = "forex_"_ i %] |
|
280 |
[% IF( $temp_forex || !changeable ) %] [% $temp | html %] <input type="hidden" name="[% temp %]" value="[% $temp | html %]"> |
|
281 |
[% ELSE %] <input type="text" name="[% temp %]" size="11" value="[% $temp | html %]"> [% END %] |
|
282 |
<input type="hidden" name="[% temp_forex %]" value="[% $temp_forex | html %]"> |
|
232 | 283 |
</td> |
233 |
<th align="left">[% invtotal | html %]</th> |
|
234 |
<td colspan="4"></td> |
|
235 |
</tr> |
|
236 |
</table> |
|
237 |
</td> |
|
284 |
[% END %] |
|
285 |
<td> |
|
286 |
[% temp = "AP_paid_"_ i %] |
|
287 |
[% readonly = "AP_paid_readonly_desc_"_ i %] |
|
288 |
[% IF( changeable ) %] [% L.select_tag(temp, ALL_CHARTS_AP_paid, value_title_sub = \AP_paid_value_title_sub, default = ($temp || accno_arap)) %] |
|
289 |
[% ELSE %] [% $readonly | html %] <input type="hidden" name="[% temp %]" value="[% $temp | html %]"> [% END %] |
|
290 |
</td> |
|
291 |
<td> |
|
292 |
[% temp = "paid_project_id_"_ i %] |
|
293 |
[% IF( changeable ) %] [% P.project.picker(temp, $temp) %] |
|
294 |
[% ELSE %] <input type="hidden" name="[% temp %]" value="[% $temp | html %]"> [% temp = "label"_ temp %] [% $temp | html %] [% END %] |
|
295 |
</td> |
|
296 |
</tr> |
|
297 |
[% END %] |
|
298 |
</tbody> |
|
299 |
<tfoot> |
|
300 |
<tr> |
|
301 |
<td></td> |
|
302 |
<td></td> |
|
303 |
<th class="right">[% 'Total' | $T8 %]</th> |
|
304 |
<td class="numeric">[% LxERP.format_amount(totalpaid, 2) | html %]</td> |
|
305 |
<td></td> |
|
306 |
[% IF ( !defaultcurrency || (currency != defaultcurrency) ) %] |
|
307 |
<th></th> |
|
308 |
[% END %] |
|
309 |
<td></td> |
|
310 |
<td></td> |
|
238 | 311 |
</tr> |
239 | 312 |
<tr> |
240 |
<td> |
|
241 |
<table> |
|
242 |
<tr> |
|
243 |
<th align="left">[% 'Notes' | $T8 %]</th> |
|
244 |
<th align="left">[% 'Internal Notes' | $T8 %]</th> |
|
245 |
<th align="left">[% 'Payment Terms' | $T8 %]</th> |
|
246 |
</tr> |
|
247 |
<tr valign="top"> |
|
248 |
<td> |
|
249 |
[% L.textarea_tag("notes", notes, wrap="soft", rows=textarea_rows, cols=50, readonly=readonly) %] |
|
250 |
</td> |
|
251 |
<td> |
|
252 |
[% L.textarea_tag("intnotes", intnotes, wrap="soft", rows=textarea_rows, cols=50, readonly=readonly) %] |
|
253 |
</td> |
|
254 |
<td> |
|
255 |
[% L.select_tag('payment_id', payment_terms, default=payment_id, title_key='description', with_empty=1, style="width: 250px", onchange="kivi.SalesPurchase.set_duedate_on_reference_date_change('invdate')") %] |
|
256 |
</td> |
|
257 |
<tr> |
|
258 |
</table> |
|
259 |
</td> |
|
260 |
</tr> |
|
261 |
<tr> |
|
262 |
<td> |
|
263 |
[% UNLESS no_payment_bookings %] |
|
264 |
<table width="100%"> |
|
265 |
<tr class="listheading"> |
|
266 |
<th class="listheading" colspan="7">[% 'Payments' | $T8 %]</th> |
|
267 |
</tr> |
|
268 |
|
|
269 |
<tr> |
|
270 |
<th>[% 'Date' | $T8 %]</th> |
|
271 |
<th>[% 'Source' | $T8 %]</th> |
|
272 |
<th>[% 'Memo' | $T8 %]</th> |
|
273 |
<th>[% 'Amount' | $T8 %]</th> |
|
274 |
<th></th> |
|
275 |
[% IF ( !defaultcurrency || (currency != defaultcurrency) ) %] |
|
276 |
<th>[% 'Exch' | $T8 %]</th> |
|
277 |
[% END %] |
|
278 |
<th>[% 'Account' | $T8 %]</th> |
|
279 |
<th>[% 'Project Number' | $T8 %]</th> |
|
280 |
</tr> |
|
281 |
|
|
282 |
[% FOREACH i IN [1..paidaccounts] %] |
|
283 |
[% temp = "paidaccount_changeable_"_ i %] |
|
284 |
[% changeable = $temp %] |
|
285 |
|
|
286 |
<tr> |
|
287 |
[% temp = "datepaid_"_ i %] |
|
288 |
<td align="center"> |
|
289 |
[% IF( changeable ) %] |
|
290 |
[% L.date_tag(temp, $temp ? $temp : today) %] |
|
291 |
[% ELSE %] |
|
292 |
[% $temp | html %] |
|
293 |
<input type="hidden" name="[% temp %]" value="[% $temp | html %]"> |
|
294 |
[% END %] |
|
295 |
</td> |
|
296 |
|
|
297 |
[% temp = "source_"_ i %] |
|
298 |
<td align="center"> |
|
299 |
[% IF( changeable ) %] |
|
300 |
<input name="[% temp %]" size="11" value="[% $temp | html %]"> |
|
301 |
[% ELSE %] |
|
302 |
[% $temp | html %] |
|
303 |
<input type="hidden" name="[% temp %]" value="[% $temp | html %]"> |
|
304 |
[% END %] |
|
305 |
</td> |
|
306 |
|
|
307 |
[% temp = "memo_"_ i %] |
|
308 |
<td align="center"> |
|
309 |
[% IF( changeable ) %] |
|
310 |
<input name="[% temp %]" size="11" value="[% $temp | html %]"> |
|
311 |
[% ELSE %] |
|
312 |
[% $temp | html %] |
|
313 |
<input type="hidden" name="[% temp %]" value="[% $temp | html %]"> |
|
314 |
[% END %] |
|
315 |
</td> |
|
316 |
|
|
317 |
[% temp = "paid_"_ i %] |
|
318 |
<td align="center"> |
|
319 |
[% IF( changeable ) %] |
|
320 |
<input name="[% temp %]" size="11" data-validate="number" class="numeric" value="[% $temp | html %]" id="[%- 'payment_' _ temp -%]"> |
|
321 |
[% ELSE %] |
|
322 |
[% $temp | html %] |
|
323 |
<input type="hidden" name="[% temp %]" value="[% $temp | html %]"> |
|
324 |
[% END %] |
|
325 |
</td> |
|
326 |
|
|
327 |
<td> |
|
328 |
[% IF changeable && loop.last && paid_missing > 0 %] |
|
329 |
<input type="button" id="ap_set_to_paid_missing" value="[% "Set to paid missing" | $T8 %]"> |
|
330 |
[% END %] |
|
331 |
</td> |
|
332 |
|
|
333 |
[% IF ( !defaultcurrency || (currency != defaultcurrency) ) %] |
|
334 |
<td align="center"> |
|
335 |
[% temp = "exchangerate_"_ i %] |
|
336 |
[% temp_forex = "forex_"_ i %] |
|
337 |
|
|
338 |
[% IF( $temp_forex || !changeable ) %] |
|
339 |
[% $temp | html %] |
|
340 |
<input type="hidden" name="[% temp %]" value="[% $temp | html %]"> |
|
341 |
[% ELSE %] |
|
342 |
<input name="[% temp %]" size="11" value="[% $temp | html %]"> |
|
343 |
[% END %] |
|
313 |
<td></td> |
|
314 |
<td></td> |
|
315 |
<th class="right">[% 'Missing amount' | $T8 %]</th> |
|
316 |
<td class="numeric">[% LxERP.format_amount(paid_missing, 2) | html %]</td> |
|
317 |
<td></td> |
|
318 |
[% IF ( !defaultcurrency || (currency != defaultcurrency) ) %] |
|
319 |
<th></th> |
|
320 |
[% END %] |
|
321 |
<td></td> |
|
322 |
<td></td> |
|
323 |
</tr> |
|
324 |
</tfoot> |
|
325 |
</table> |
|
326 |
[% END %] |
|
344 | 327 |
|
345 |
<input type=hidden name="[% temp_forex %]" value="[% $temp_forex | html %]"> |
|
346 |
</td> |
|
347 |
[% END %] |
|
328 |
</div><!-- /.wrapper --> |
|
348 | 329 |
|
349 |
[% temp = "AP_paid_"_ i %] |
|
350 |
[% readonly = "AP_paid_readonly_desc_"_ i %] |
|
351 |
<td align="center"> |
|
352 |
[% IF( changeable ) %] |
|
353 |
[% L.select_tag(temp, ALL_CHARTS_AP_paid, value_title_sub = \AP_paid_value_title_sub, default = ($temp || accno_arap)) %] |
|
354 |
[% ELSE %] |
|
355 |
[% $readonly | html %] |
|
356 |
<input type="hidden" name="[% temp %]" value="[% $temp | html %]"> |
|
357 |
[% END %] |
|
358 |
</td> |
|
330 |
</div><!-- /#ui-tabs-basic-data --> |
|
359 | 331 |
|
360 |
<td align="center"> |
|
361 |
[% temp = "paid_project_id_"_ i %] |
|
362 |
[% IF( changeable ) %] |
|
363 |
[% P.project.picker(temp, $temp) %] |
|
364 |
[% ELSE %] |
|
365 |
<input type="hidden" name="[% temp %]" value="[% $temp | html %]"> |
|
366 |
[% temp = "label"_ temp %] |
|
367 |
[% $temp | html %] |
|
368 |
[% END %] |
|
369 |
</td> |
|
370 |
</tr> |
|
371 |
[% END %] |
|
372 |
|
|
373 |
<tr> |
|
374 |
<td></td> |
|
375 |
<td></td> |
|
376 |
<td align="center">[% 'Total' | $T8 %]</td> |
|
377 |
<td align="center">[% LxERP.format_amount(totalpaid, 2) | html %]</td> |
|
378 |
</tr> |
|
379 |
<tr> |
|
380 |
<td></td> |
|
381 |
<td></td> |
|
382 |
<td align="center">[% 'Missing amount' | $T8 %]</td> |
|
383 |
<td align="center">[% LxERP.format_amount(paid_missing, 2) | html %]</td> |
|
384 |
</tr> |
|
385 |
</table> |
|
386 |
[% END %] |
|
387 |
</td> |
|
388 |
</tr> |
|
389 |
</table> |
|
390 |
</div> |
|
391 | 332 |
[% PROCESS 'webdav/_list.html' %] |
392 | 333 |
<div id="ui-tabs-1"> |
393 | 334 |
[% LxERP.t8('Loading...') %] |
394 | 335 |
</div> |
336 |
|
|
395 | 337 |
</div> |
396 | 338 |
|
397 |
<hr size="3" noshade> |
|
398 | 339 |
|
399 |
<script type='text/javascript'>
|
|
340 |
<script type="text/javascript">
|
|
400 | 341 |
$('#ap_set_to_paid_missing').click(function(){ $('input[id^="payment_paid_"]:last').val('[% LxERP.format_amount(paid_missing, 2) %]') }); |
401 | 342 |
</script> |
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/ap/form_header.html