7 [%- INCLUDE 'generic/set_longdescription.html' %]
9 <div id="ui-tabs-basic-data">
11 [% IF FORM.email_attachment_id || FORM.workflow_email_attachment_id%]
12 <div class="wrapper" id="email_attachment_wrapper">
15 P.email_journal.attachment_preview(
16 FORM.email_attachment_id || FORM.workflow_email_attachment_id,
20 INCLUDE 'common/toggle_panel.html'
22 button_closed = LxERP.t8('Show Attachment')
23 button_open = LxERP.t8('Hide Attachment')
29 <div class="wrapper" id="wrapper-1">
30 [% INCLUDE 'generic/toggle_wrapper.html' %]
35 <table class="tbl-horizontal col">
36 <caption>[% 'Customer & Order Information' | $T8 %]</caption>
37 <colgroup><col class="wi-mediumsmall"><col class="wi-lightwide"></colgroup>
40 <th>[%- SELF.cv == "customer" ? LxERP.t8('Customer') : LxERP.t8('Vendor') -%]</th>
41 [% SET cv_id = SELF.cv _ '_id' %]
42 <td class="wi-lightwide">
43 [% P.customer_vendor.picker("order.${SELF.cv}" _ '_id', SELF.order.$cv_id, type=SELF.cv,
48 <tr id='cp_row' [%- IF !SELF.order.${SELF.cv}.contacts.size %]style='display:none'[%- END %]>
49 <th>[% 'Contact Person' | $T8 %]</th>
50 <td>[% L.select_tag('order.cp_id',
51 SELF.order.${SELF.cv}.contacts,
52 default=SELF.order.cp_id,
53 title_key='full_name_dep',
56 class='wi-lightwide') %]</td>
60 <th>[% 'Shipping Address' | $T8 %]</th>
62 <span id='shipto_selection' [%- IF !SELF.order.${SELF.cv}.shipto.size %]style='display:none'[%- END %]>
63 [% shiptos = [ { shipto_id => "", displayable_id => LxERP.t8("No/individual shipping address") } ] ;
64 FOREACH s = SELF.order.${SELF.cv}.shipto ;
67 L.select_tag('order.shipto_id',
69 default=SELF.order.shipto_id,
70 title_key='displayable_id',
71 value_key='shipto_id',
73 style='wi-lightwide') %]
75 [% L.button_tag("kivi.DeliveryOrder.edit_custom_shipto()",
76 LxERP.t8("Custom shipto"),
77 class='button neutral below wi-lightwide') %]
81 [%- PROCESS delivery_order/tabs/_business_info_row.html SELF=SELF %]
83 [%- IF SELF.all_languages.size %]
85 <th>[% 'Language' | $T8 %]</th>
87 [% L.select_tag('order.language_id', SELF.all_languages, default=SELF.order.language_id, title_key='description', with_empty=1, class='wi-lightwide') %]
92 [%- IF SELF.all_departments.size %]
94 <th>[% 'Department' | $T8 %]</th>
96 [% L.select_tag('order.department_id', SELF.all_departments, default=SELF.order.department_id, title_key='description', with_empty=1, class='wi-lightwide') %]
102 <th>[% 'Shipping Point' | $T8 %]</th>
103 <td>[% L.input_tag('order.shippingpoint', SELF.order.shippingpoint, class='wi-lightwide') %]</td>
107 <th>[% 'Ship via' | $T8 %]</th>
108 <td>[% L.input_tag('order.shipvia', SELF.order.shipvia, class='wi-lightwide') %]</td>
112 <th>[% 'Transaction description' | $T8 %]</th>
113 <td>[% L.input_tag('order.transaction_description', SELF.order.transaction_description, 'data-validate'=INSTANCE_CONF.get_require_transaction_description_ps ? 'required' : '', class='wi-lightwide') %]</td>
117 <th>[% 'Project Number' | $T8 %]</th>
118 <td>[% P.project.picker('order.globalproject_id', SELF.order.globalproject_id, class='wi-lightwide') %]</td>
123 <table class="tbl-horizontal col">
124 <caption>[% 'Terms' | $T8 %]</caption>
125 <colgroup><col class="wi-mediumsmall"><col class="wi-lightwide"></colgroup>
129 <span class="label above">[% 'Payment Terms' | $T8 %]</span>
130 [% L.select_tag('order.payment_id',
131 SELF.all_payment_terms,
132 default = SELF.order.payment_id,
134 title_key = 'description',
135 class = 'wi-mediumsmall-lightwide') %]
140 <span class="label above">[% 'Delivery Terms' | $T8 %]</span>
141 [% L.select_tag('order.delivery_term_id',
142 SELF.all_delivery_terms,
143 default = SELF.order.delivery_term_id,
145 title_key = 'description',
146 class = 'wi-mediumsmall-lightwide') %]
154 <table class="tbl-horizontal col">
155 <caption>[% 'Notes' | $T8 %]</caption>
156 <colgroup><col class="wi-wide"></colgroup>
160 [% L.textarea_tag('order.notes', SELF.order.notes, rows=7, class="texteditor wi-wide") %]
165 <span class="label above">[% 'Internal Notes' | $T8 %]</span>
166 [% L.textarea_tag('order.intnotes', SELF.order.intnotes, class="wi-wide") %]
172 <table class="tbl-horizontal col">
173 <caption>[% 'Handling, Numbers & Dates' | $T8 %]</caption>
174 <colgroup> <col class="wi-mediumsmall"><col class="wi-normal"> </colgroup>
178 <th>[% 'Status' | $T8 %]</th>
180 <span id="data-status-line" class="data wi-normal overflow-visible height-auto">
181 [% SELF.order.presenter.status_line || ' ' %]
187 <th>[% 'Employee' | $T8 %]</th>
188 <td>[% L.select_tag('order.employee_id',
190 default=(SELF.order.employee_id ? SELF.order.employee_id : SELF.current_employee_id),
191 title_key='safe_name',
196 [% IF SELF.cv == 'customer' %]
198 <th>[% 'Salesman' | $T8 %]</th>
199 <td>[% L.select_tag('order.salesman_id',
201 default=(SELF.order.salesman_id ? SELF.order.salesman_id : SELF.current_employee_id),
202 title_key='safe_name',
209 <th>[% 'Delivery Order Number' | $T8 %]</th>
210 <td>[% L.input_tag('order.donumber', SELF.order.donumber, onchange='kivi.DeliveryOrder.set_number_in_title(this)', class='wi-normal numeric') %]</td>
214 <th>[% 'Order Number' | $T8 %]</th>
215 <td>[% L.input_tag('order.ordnumber', SELF.order.ordnumber, class='wi-normal') %]</td>
218 [%- IF SELF.type == 'purchase_delivery_order' %]
220 <th>[% 'Order Confirmation Number' | $T8 %]</th>
223 FOREACH p = SELF.order.preceding_purchase_order_confirmations();
224 numbers.push(HTML.escape(p.ordnumber));
227 <td><span class="data wi-normal">[% numbers.join(', ') %]</span></td>
231 <th>[% 'Vendor Confirmation Number' | $T8 %]</th>
232 <td>[% L.input_tag('order.vendor_confirmation_number', SELF.order.vendor_confirmation_number, class='wi-normal numeric') %]</td>
237 <th>[% IF SELF.type_data.properties('is_customer') %][% 'Customer Order Number' | $T8 %][% ELSE %][% 'Vendor Order Number' | $T8 %][% END %]</th>
238 <td>[% L.input_tag('order.cusordnumber', SELF.order.cusordnumber, class='wi-normal numeric') %]</td>
242 <th>[% 'Delivery Order Date' | $T8 %]</th>
243 <td>[% L.date_tag('order.transdate_as_date', SELF.order.transdate_as_date, class='wi-date') %]</td>
247 <th>[% 'Reqdate' | $T8 %]</th>
248 <td>[% L.date_tag('order.reqdate_as_date', SELF.order.reqdate_as_date, class="wi-date " _ reqdate_class) %]</td>
252 <th>[% 'Insert Date' | $T8 %]</th>
253 <td><span class="data wi-normal">[% SELF.order.itime_as_date %]</span></td>
258 </div><!-- /.wrapper -->
260 [%- PROCESS delivery_order/tabs/_item_input.html SELF=SELF %]
263 [%- IF SELF.positions_scrollbar_height -%]
264 [%- SET scroll_style = 'style="overflow-y: auto; height:' _ SELF.positions_scrollbar_height _ 'vh;"' -%]
266 [%- SET scroll_style = '' -%]
268 <div id="row_table_scroll_id" class="wrapper horizontal-scroll-wrapper" [%- scroll_style -%]>
270 <table id="row_table_id" class="tbl-list">
271 <caption>[% 'Articles' | $T8 %]</caption>
274 <th class="center" style='text-align:center' nowrap width="1">
275 [%- IF MYCONFIG.show_form_details %]
276 [%- L.img_tag(src="image/collapse.svg", alt=LxERP.t8('Hide all details'), title=LxERP.t8('Hide all details'), id='expand_all', class='row-icon', "data-expanded"="1") %]
278 [%- L.img_tag(src="image/expand.svg", alt=LxERP.t8('Show all details'), title=LxERP.t8('Show all details'), id='expand_all', class='row-icon') %]
281 <th nowrap width="3">[%- 'position' | $T8 %] </th>
282 <th style='text-align:center'><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"></th>
283 <th style='text-align:center'><img src="image/close.png" alt="[%- LxERP.t8('delete item') %]"></th>
284 [%- IF SELF.show_update_button -%]
285 <th class="listheading" style='text-align:center' nowrap width="1">
286 [%- L.img_tag(src="image/rotate_cw.svg",
287 alt=LxERP.t8('Update from master data'),
288 title= LxERP.t8('Update from master data'),
289 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();",
290 id='update_from_master', class='row-icon') %]
293 <th id="partnumber_header_id"><a href='#' onClick='javascript:kivi.DeliveryOrder.reorder_items("partnumber")'> [%- 'Partnumber' | $T8 %]</a></th>
294 [%- IF SELF.search_cvpartnumber -%]
295 <th id="cvpartnumber_header_id"><a href='#' onClick='javascript:kivi.DeliveryOrder.reorder_items("cvpartnumber")' > [%- SELF.cv == "customer" ? LxERP.t8('Customer Part Number') : LxERP.t8('Model') %]</a></th>
297 <th id="partclass_header_id">[%- 'Type' | $T8 %]</th>
298 <th id="description_header_id"><a href='#' onClick='javascript:kivi.DeliveryOrder.reorder_items("description")'>[%- 'Description' | $T8 %]</a></th>
299 [%- IF (SELF.type == "sales_order" || SELF.type == "purchase_order") -%]
300 <th id="shipped_qty_header_id"><a href='#' onClick='javascript:kivi.DeliveryOrder.reorder_items("shipped_qty")'>[%- 'Delivered' | $T8 %]</a></th>
302 <th id="qty_header_id"><a href='#' onClick='javascript:kivi.DeliveryOrder.reorder_items("qty")'> [%- 'Qty' | $T8 %]</a></th>
303 <th>[%- 'Unit' | $T8 %] </th>
304 [% IF in_out == 'in' %]
305 <th>[%- 'Transfer To Stock' | $T8 %] </th>
307 [% IF in_out == 'out' %]
308 <th>[%- 'Release From Stock' | $T8 %] </th>
313 [%- FOREACH item = SELF.order.items_sorted %]
314 [%- PROCESS delivery_order/tabs/_row.html ITEM=item ID=(item.id||item.new_fake_id) -%]
321 </div><!-- /#row_table_scroll_id /.wrapper -->
323 [% L.hidden_tag('order.currency_id', SELF.order.currency_id) %]
324 [% L.hidden_tag('order.taxzone_id', SELF.order.taxzone_id) %]
325 [% L.hidden_tag('order.taxincluded', SELF.order.taxincluded) %]
327 </div><!-- /#ui-tabs-basic-data -->
329 [% L.sortable_element('#row_table_id') %]