7 [%- INCLUDE 'generic/set_longdescription.html' %]
9 <div id="ui-tabs-basic-data">
15 <th align="right">[%- SELF.cv == "customer" ? LxERP.t8('Customer') : LxERP.t8('Vendor') -%]</th>
16 [% SET cv_id = SELF.cv _ '_id' %]
18 [% P.customer_vendor.picker("order.${SELF.cv}" _ '_id', SELF.order.$cv_id, type=SELF.cv, style='width: 300px') %]
19 [% P.button_tag("kivi.DeliveryOrder.show_vc_details_dialog()", LxERP.t8("Details (one letter abbreviation)")) %]
23 <tr id='cp_row' [%- IF !SELF.order.${SELF.cv}.contacts.size %]style='display:none'[%- END %]>
24 <th align="right">[% 'Contact Person' | $T8 %]</th>
25 <td>[% L.select_tag('order.cp_id',
26 SELF.order.${SELF.cv}.contacts,
27 default=SELF.order.cp_id,
28 title_key='full_name_dep',
31 style='width: 300px') %]</td>
35 <th align="right">[% 'Shipping Address' | $T8 %]</th>
37 <span id='shipto_selection' [%- IF !SELF.order.${SELF.cv}.shipto.size %]style='display:none'[%- END %]>
38 [% shiptos = [ { shipto_id => "", displayable_id => LxERP.t8("No/individual shipping address") } ] ;
39 FOREACH s = SELF.order.${SELF.cv}.shipto ;
42 L.select_tag('order.shipto_id',
44 default=SELF.order.shipto_id,
45 title_key='displayable_id',
46 value_key='shipto_id',
48 style='width: 300px') %]
50 [% L.button_tag("kivi.DeliveryOrder.edit_custom_shipto()", LxERP.t8("Custom shipto")) %]
54 [%- PROCESS delivery_order/tabs/_business_info_row.html SELF=SELF %]
57 <th align="right">[% 'Steuersatz' | $T8 %]</th>
58 <td>[% L.select_tag('order.taxzone_id', SELF.all_taxzones, default=SELF.order.taxzone_id, title_key='description', style='width: 300px', class='recalc') %]</td>
61 [% SET currency_id = SELF.order.currency_id || INSTANCE_CONF.get_currency_id # use default currency for new order %]
62 <tr id="currency_settings">
63 <th align="right">[% 'Currency' | $T8 %]</th>
64 <td>[% L.select_tag('order.currency_id', SELF.all_currencies, default=currency_id, value_key='id', title_key='name') %]</td>
66 <tr id="exchangerate_settings" [%- IF SELF.order.currency_id==INSTANCE_CONF.get_currency_id %]style='display:none'[%- END %]>
67 <th align="right">[% 'Exchangerate' | $T8 %]</th>
68 <td> 1 <span id="currency_name">[% SELF.order.currency.name %]</span> =
69 [% L.input_tag('order.exchangerate_as_null_number', SELF.order.exchangerate_as_null_number, size="15", class="reformat_number_as_null_number numeric") %]
70 [% INSTANCE_CONF.default_currency %]
71 [% L.hidden_tag('old_currency_id', currency_id) %]
72 [% L.hidden_tag('old_exchangerate', SELF.order.exchangerate_as_null_number) %]
76 [%- IF SELF.all_languages.size %]
78 <th align="right">[% 'Language' | $T8 %]</th>
80 [% L.select_tag('order.language_id', SELF.all_languages, default=SELF.order.language_id, title_key='description', with_empty=1, style='width:300px') %]
85 [%- IF SELF.all_departments.size %]
87 <th align="right">[% 'Department' | $T8 %]</th>
89 [% L.select_tag('order.department_id', SELF.all_departments, default=SELF.order.department_id, title_key='description', with_empty=1, style='width:300px') %]
95 <th align="right">[% 'Shipping Point' | $T8 %]</th>
96 <td>[% L.input_tag('order.shippingpoint', SELF.order.shippingpoint, style='width: 300px') %]</td>
100 <th align="right">[% 'Ship via' | $T8 %]</th>
101 <td>[% L.input_tag('order.shipvia', SELF.order.shipvia, style='width: 300px') %]</td>
105 <th align="right">[% 'Transaction description' | $T8 %]</th>
106 <td>[% L.input_tag('order.transaction_description', SELF.order.transaction_description, 'data-validate'=INSTANCE_CONF.get_require_transaction_description_ps ? 'required' : '', style='width: 300px') %]</td>
110 <th align="right">[% 'Project Number' | $T8 %]</th>
111 <td>[% P.project.picker('order.globalproject_id', SELF.order.globalproject_id, style='width: 300px') %]</td>
121 <td colspan="2" align="center">
122 [%- IF SELF.order.id %]
123 <label for="order.delivered">[% 'Delivery Order(s) for full qty created' | $T8 %]</label>
124 [% L.yes_no_tag('order.delivered', SELF.order.delivered) %]
125 <label for="order.closed">[% 'Closed' | $T8 %]</label>
126 [% L.yes_no_tag('order.closed', SELF.order.closed) %]
132 <th align="right">[% 'Employee' | $T8 %]</th>
133 <td>[% L.select_tag('order.employee_id',
135 default=(SELF.order.employee_id ? SELF.order.employee_id : SELF.current_employee_id),
136 title_key='safe_name') %]</td>
139 [% IF SELF.cv == 'customer' %]
141 <th align="right">[% 'Salesman' | $T8 %]</th>
142 <td>[% L.select_tag('order.salesman_id',
144 default=(SELF.order.salesman_id ? SELF.order.salesman_id : SELF.current_employee_id),
145 title_key='safe_name') %]</td>
149 [%- IF (SELF.type == "sales_order" || SELF.type == "purchase_order") -%]
151 <th width="70%" align="right" nowrap>[% 'Order Number' | $T8 %]</th>
152 <td>[% L.input_tag('order.ordnumber', SELF.order.ordnumber, size = 11, onchange='kivi.DeliveryOrder.set_number_in_title(this)') %]</td>
156 [%- IF (SELF.type == "sales_order" || SELF.type == "sales_quotation") -%]
157 [%- SET quo_nr_txt = 'Quotation Number' -%]
159 [%- SET quo_nr_txt = 'RFQ Number' -%]
162 <th width="70%" align="right" nowrap>[% quo_nr_txt | $T8 %]</th>
163 [%- IF (SELF.type == "sales_order" || SELF.type == "purchase_order") -%]
164 <td>[% L.input_tag('order.quonumber', SELF.order.quonumber, size = 11) %]</td>
166 <td>[% L.input_tag('order.quonumber', SELF.order.quonumber, size = 11, onchange='kivi.DeliveryOrder.set_number_in_title(this)') %]</td>
170 [%- IF (SELF.type == "sales_order" || SELF.type == "purchase_order") -%]
172 <th width="70%" align="right" nowrap>[% 'Customer Order Number' | $T8 %]</th>
173 <td>[% L.input_tag('order.cusordnumber', SELF.order.cusordnumber, size = 11) %]</td>
177 [%- IF (SELF.type == "sales_order" || SELF.type == "purchase_order") -%]
178 [%- SET transdate_txt = 'Order Date' -%]
179 [%- ELSIF SELF.type == "sales_quotation" -%]
180 [%- SET transdate_txt = 'Quotation Date' -%]
182 [%- SET transdate_txt = 'RFQ Date' -%]
185 <th width="70%" align="right" nowrap>[% transdate_txt | $T8 %]</th>
186 <td>[% L.date_tag('order.transdate_as_date', SELF.order.transdate_as_date) %]</td>
190 <th width="70%" align="right" nowrap>[% 'Tax point' | $T8 %]</th>
191 <td>[% L.date_tag('order.tax_point_as_date', SELF.order.tax_point_as_date, class="recalc") %]</td>
194 [%- IF (SELF.type == "sales_order" || SELF.type == "purchase_order") -%]
195 [%- SET reqdate_txt = 'Reqdate'; SET reqdate_class = 'recalc' -%]
196 [%- ELSIF SELF.type == "sales_quotation" -%]
197 [%- SET reqdate_txt = 'Valid until'; SET reqdate_class = '' -%]
199 [%- SET reqdate_txt = 'Required by'; SET reqdate_class = 'recalc' -%]
202 <th width="70%" align="right" nowrap>[% reqdate_txt | $T8 %]</th>
203 <td>[% L.date_tag('order.reqdate_as_date', SELF.order.reqdate_as_date, class=reqdate_class) %]</td>
206 [%- IF SELF.type == "sales_quotation" -%]
208 <th width="70%" align="right" nowrap>[% 'Order probability' | $T8 %]</th>
209 <td>[%- L.select_tag('order.order_probability', SELF.order_probabilities, title='title', default=SELF.order.order_probability) %]%</td>
212 <th width="70%" align="right" nowrap>[% 'Expected billing date' | $T8 %]</th>
213 <td>[%- L.date_tag('order.expected_billing_date_as_date', SELF.order.expected_billing_date_as_date) %]</td>
218 <th width="70%" align="right" nowrap>[% 'Insert Date' | $T8 %]</th>
219 <td>[% SELF.order.itime_as_date %]</td>
228 [%- PROCESS delivery_order/tabs/_item_input.html SELF=SELF %]
230 [% L.button_tag('kivi.DeliveryOrder.open_multi_items_dialog()', LxERP.t8('Add multiple items')) %]
235 [%- IF SELF.positions_scrollbar_height -%]
236 [%- SET scroll_style = 'style="overflow-y: auto; height:' _ SELF.positions_scrollbar_height _ 'vh;"' -%]
238 [%- SET scroll_style = '' -%]
240 <div id="row_table_scroll_id" [%- scroll_style -%]>
241 <table id="row_table_id" width="100%">
243 <tr class="listheading">
244 <th class="listheading" style='text-align:center' nowrap width="1">
245 [%- IF MYCONFIG.show_form_details %]
246 [%- L.img_tag(src="image/collapse.svg", alt=LxERP.t8('Hide all details'), title=LxERP.t8('Hide all details'), id='expand_all', "data-expanded"="1") %]
248 [%- L.img_tag(src="image/expand.svg", alt=LxERP.t8('Show all details'), title=LxERP.t8('Show all details'), id='expand_all') %]
251 <th class="listheading" nowrap width="3" >[%- 'position' | $T8 %] </th>
252 <th class="listheading" style='text-align:center' nowrap width="1"><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"></th>
253 <th class="listheading" style='text-align:center' nowrap width="1"><img src="image/close.png" alt="[%- LxERP.t8('delete item') %]"></th>
254 [%- IF SELF.show_update_button -%]
255 <th class="listheading" style='text-align:center' nowrap width="1">
256 [%- L.img_tag(src="image/rotate_cw.svg",
257 alt=LxERP.t8('Update from master data'),
258 title= LxERP.t8('Update from master data'),
259 onclick="if (!confirm('" _ LxERP.t8("Are you sure to update all positions from master data?") _ "')) return false; kivi.DeliveryOrder.update_all_rows_from_master_data();",
260 id='update_from_master') %]
263 <th id="partnumber_header_id" class="listheading" nowrap width="15"><a href='#' onClick='javascript:kivi.DeliveryOrder.reorder_items("partnumber")'> [%- 'Partnumber' | $T8 %]</a></th>
264 [%- IF SELF.search_cvpartnumber -%]
265 <th id="cvpartnumber_header_id" class="listheading" nowrap width="15"><a href='#' onClick='javascript:kivi.DeliveryOrder.reorder_items("cvpartnumber")' > [%- SELF.cv == "customer" ? LxERP.t8('Customer Part Number') : LxERP.t8('Model') %]</a></th>
267 <th id="partclass_header_id" class="listheading" nowrap width="2">[%- 'Type' | $T8 %]</th>
268 <th id="description_header_id" class="listheading" nowrap ><a href='#' onClick='javascript:kivi.DeliveryOrder.reorder_items("description")'>[%- 'Description' | $T8 %]</a></th>
269 [%- IF (SELF.type == "sales_order" || SELF.type == "purchase_order") -%]
270 <th id="shipped_qty_header_id" class="listheading" nowrap width="5" ><a href='#' onClick='javascript:kivi.DeliveryOrder.reorder_items("shipped_qty")'>[%- 'Delivered' | $T8 %]</a></th>
272 <th id="qty_header_id" class="listheading" nowrap width="5" ><a href='#' onClick='javascript:kivi.DeliveryOrder.reorder_items("qty")'> [%- 'Qty' | $T8 %]</a></th>
273 <th class="listheading" nowrap width="5" >[%- 'Price Factor' | $T8 %] </th>
274 <th class="listheading" nowrap width="5" >[%- 'Unit' | $T8 %] </th>
275 <th id="sellprice_header_id" class="listheading" nowrap width="15" ><a href='#' onClick='javascript:kivi.DeliveryOrder.reorder_items("sellprice")'> [%- 'Price' | $T8 %]</a></th>
276 <th id="discount_header_id" class="listheading" nowrap width="15" ><a href='#' onClick='javascript:kivi.DeliveryOrder.reorder_items("discount")'> [%- 'Discount' | $T8 %]</a></th>
277 <th class="listheading" nowrap width="10">[%- 'Extended' | $T8 %] </th>
281 [%- FOREACH item = SELF.order.items_sorted %]
282 [%- PROCESS delivery_order/tabs/_row.html ITEM=item ID=(item.id||item.new_fake_id) -%]
295 <td colspan="100%" width="100%">
301 <th align="left">[% 'Notes' | $T8 %]</th>
302 <th align="left">[% 'Internal Notes' | $T8 %]</th>
306 [% L.textarea_tag('order.notes', SELF.order.notes, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %]
309 [% L.textarea_tag('order.intnotes', SELF.order.intnotes, wrap="soft", style="width: 350px; height: 150px") %]
318 <th align="right">[% 'Payment Terms' | $T8 %]</th>
319 <td>[% L.select_tag('order.payment_id',
320 SELF.all_payment_terms,
321 default = SELF.order.payment_id,
323 title_key = 'description',
324 style = 'width: 250px') %]</td>
327 <th align="right">[% 'Delivery Terms' | $T8 %]</th>
328 <td>[% L.select_tag('order.delivery_term_id',
329 SELF.all_delivery_terms,
330 default = SELF.order.delivery_term_id,
332 title_key = 'description',
333 style = 'width: 250px') %]</td>
347 [% L.sortable_element('#row_table_id') %]