15 |
15 |
<input type="hidden" name="creditremaining" value="[% creditremaining | html %]">
|
16 |
16 |
<input type="hidden" name="forex" value="[% forex | html %]">
|
17 |
17 |
<input type="hidden" name="lastmtime" value="[% HTML.escape(lastmtime) %]">
|
18 |
|
<input type="hidden" name="id" value="[% id | html %]">
|
|
18 |
<input id="id" type="hidden" name="id" value="[% id | html %]">
|
19 |
19 |
<input type="hidden" name="sort" value="[% sort | html %]">
|
20 |
20 |
<input type="hidden" name="closedto" value="[% closedto | html %]">
|
21 |
21 |
<input type="hidden" name="locked" value="[% locked | html %]">
|
... | ... | |
59 |
59 |
<li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li>
|
60 |
60 |
[% END %]
|
61 |
61 |
[% IF id AND INSTANCE_CONF.get_doc_storage %]
|
62 |
|
<li><a href="controller.pl?action=File/list&file_type=document&object_type=purchase_invoice&object_id=[% HTML.url(id) %]">[% 'Documents' | $T8 %]</a></li>
|
|
62 |
<li><a href="#ui-tabs-docs">[% 'Documents' | $T8 %]</a></li>
|
63 |
63 |
<li><a href="controller.pl?action=File/list&file_type=attachment&object_type=purchase_invoice&object_id=[% HTML.url(id) %]">[% 'Attachments' | $T8 %]</a></li>
|
64 |
64 |
[% END %]
|
65 |
65 |
[% IF id %]
|
... | ... | |
70 |
70 |
[% END %]
|
71 |
71 |
</ul>
|
72 |
72 |
|
|
73 |
[% IF id AND INSTANCE_CONF.get_doc_storage %]
|
|
74 |
<div id="ui-tabs-docs"></div>
|
|
75 |
[% END %]
|
|
76 |
|
73 |
77 |
<div id="ui-tabs-basic-data">
|
74 |
78 |
|
75 |
79 |
<div class="wrapper">
|
... | ... | |
80 |
84 |
<tbody>
|
81 |
85 |
<tr>
|
82 |
86 |
<th>[% 'Vendor' | $T8 %]</th>
|
83 |
|
<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>
|
|
87 |
<td class="wi-lightwide">
|
|
88 |
[% P.customer_vendor.picker("vendor_id", vendor_id, type="vendor", onchange="\$('#update_button').click()") %]
|
|
89 |
[% L.button_tag("show_vc_details('vendor')", LxERP.t8('Details (one letter abbreviation)'), class='wi-tiny neutral') %]
|
|
90 |
[% L.hidden_tag("previous_vendor_id", vendor_id) %]
|
|
91 |
</td>
|
84 |
92 |
</tr>
|
85 |
93 |
<tr>
|
86 |
94 |
<th>[% LxERP.t8("Credit Limit") %]</th>
|
... | ... | |
115 |
123 |
[%- END %]
|
116 |
124 |
[% IF record_forex %][% 'record exchange rate' | $T8 %][%- ELSE %][% 'default exchange rate' | $T8 %][%- END %]
|
117 |
125 |
[% L.hidden_tag("record_forex", record_forex) %]
|
118 |
|
</td>
|
119 |
|
</tr>
|
|
126 |
</td>
|
|
127 |
</tr>
|
120 |
128 |
[% END %]
|
121 |
129 |
[% IF ALL_DEPARTMENTS %]
|
122 |
130 |
<tr>
|
... | ... | |
124 |
132 |
<td>[% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, class='wi-lightwide') %]</td>
|
125 |
133 |
</tr>
|
126 |
134 |
[% END %]
|
|
135 |
<tr>
|
|
136 |
<th>[% 'Transaction description' | $T8 %]</th>
|
|
137 |
<td>[% L.input_tag("transaction_description", transaction_description, class="wi-lightwide", "data-validate"=INSTANCE_CONF.get_require_transaction_description_ps ? 'required' : '') %]</td>
|
|
138 |
</tr>
|
127 |
139 |
<tr>
|
128 |
140 |
<th>[% 'Tax Included' | $T8 %]</th>
|
129 |
141 |
<th><input name="taxincluded" type="checkbox" value="1" [% IF ( taxincluded ) %]checked[% END %]></th>
|
... | ... | |
153 |
165 |
<tr>
|
154 |
166 |
<td>
|
155 |
167 |
<span class="label above">[% 'Payment Terms' | $T8 %]</span>
|
156 |
|
[% 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')") %]
|
|
168 |
[% L.select_tag('payment_id', payment_terms, default=payment_id, title_key='description', with_empty=1, class="wi-wide", onchange="kivi.SalesPurchase.set_duedate_on_reference_date_change('transdate')") %]
|
157 |
169 |
</td>
|
158 |
170 |
</tr>
|
159 |
171 |
</tbody>
|
... | ... | |
172 |
184 |
</tr>
|
173 |
185 |
<tr>
|
174 |
186 |
<th>[% 'Invoice Date' | $T8 %]</th>
|
175 |
|
<td>[% L.date_tag('transdate', transdate) %]</td>
|
|
187 |
<td>[% L.date_tag('transdate', transdate, onchange='kivi.SalesPurchase.set_duedate_on_reference_date_change("transdate")') %]</td>
|
176 |
188 |
</tr>
|
177 |
189 |
<tr>
|
178 |
190 |
<th>[% 'Due Date' | $T8 %]</th>
|
... | ... | |
220 |
232 |
<td class="numeric">
|
221 |
233 |
<input type="text" name="amount_[% i %]" size="10" value="[% temp = "amount_"_ i %][% $temp | html %]" class="numeric wi-small">
|
222 |
234 |
</td>
|
223 |
|
<td class="numeric">[% temp = "tax_"_ i %][% $temp | html %]</td>
|
|
235 |
<td class="numeric">
|
|
236 |
[% temp_r = "tax_reverse_"_ i %]
|
|
237 |
[% IF ($temp_r) %]
|
|
238 |
[% $temp_r | html %]
|
|
239 |
|
|
240 |
[% temp_c = "tax_charge_"_ i %][% $temp_c | html %]
|
|
241 |
[% ELSE %]
|
|
242 |
[% temp = "tax_"_ i %][% $temp | html %]
|
|
243 |
[% END %]
|
|
244 |
</td>
|
224 |
245 |
<td>
|
225 |
246 |
[% temp = 'selected_taxchart_'_ i %] [% taxcharts = 'taxcharts_' _ i %]
|
226 |
247 |
[% L.select_tag('taxchart_'_ i, $taxcharts, value_title_sub = \taxchart_value_title_sub, default = $temp, class='wi-lightwide') %]
|
... | ... | |
364 |
385 |
|
365 |
386 |
|
366 |
387 |
<script type="text/javascript">
|
367 |
|
$('#ap_set_to_paid_missing').click(function(){ $('input[id^="payment_paid_"]:last').val('[% LxERP.format_amount(paid_missing, 2) %]') });
|
|
388 |
$('#ap_set_to_paid_missing').click(function(){ $('input[id^="payment_paid_"]:last').val("[% LxERP.format_amount(paid_missing, 2) %]") });
|
368 |
389 |
</script>
|
design40: Anpassungen bei templates Kreditoren- und Debitorenbuchungen