7 [%- INCLUDE 'generic/set_longdescription.html' %]
9 <div id="ui-tabs-basic-data">
15 <th align="right">[% SELF.cv | $T8 %]</th>
16 [% SET cv_id = SELF.cv _ '_id' %]
17 <td>[% P.customer_vendor.picker("order.${SELF.cv}" _ '_id', SELF.order.$cv_id, type=SELF.cv, style='width: 300px') %]</td>
20 <tr id='cp_row' [%- IF !SELF.order.${SELF.cv}.contacts.size %]style='display:none'[%- END %]>
21 <th align="right">[% 'Contact Person' | $T8 %]</th>
22 <td>[% L.select_tag('order.cp_id',
23 SELF.order.${SELF.cv}.contacts,
24 default=SELF.order.cp_id,
25 title_key='full_name_dep',
28 style='width: 300px') %]</td>
31 <tr id='shipto_row' [%- IF !SELF.order.${SELF.cv}.shipto.size %]style='display:none'[%- END %]>
32 <th align="right">[% 'Shipping Address' | $T8 %]</th>
33 <td>[% L.select_tag('order.shipto_id',
34 SELF.order.${SELF.cv}.shipto,
35 default=SELF.order.shipto_id,
36 title_key='displayable_id',
37 value_key='shipto_id',
39 style='width: 300px') %]</td>
43 <th align="right">[% 'Steuersatz' | $T8 %]</th>
44 <td>[% L.select_tag('order.taxzone_id', SELF.all_taxzones, default=SELF.order.taxzone_id, title_key='description', style='width: 300px', class='recalc') %]</td>
47 [%- IF SELF.all_departments.size %]
49 <th align="right">[% 'Department' | $T8 %]</th>
51 [% L.select_tag('order.department_id', SELF.all_departments, default=SELF.order.department_id, title_key='description', with_empty=1, style='width:300px') %]
57 <th align="right">[% 'Shipping Point' | $T8 %]</th>
58 <td>[% L.input_tag('order.shippingpoint', SELF.order.shippingpoint, style='width: 300px') %]</td>
62 <th align="right">[% 'Ship via' | $T8 %]</th>
63 <td>[% L.input_tag('order.shipvia', SELF.order.shipvia, style='width: 300px') %]</td>
67 <th align="right">[% 'Transaction description' | $T8 %]</th>
68 <td>[% L.input_tag('order.transaction_description', SELF.order.transaction_description, style='width: 300px') %]</td>
72 <th align="right">[% 'Project Number' | $T8 %]</th>
73 <td>[% P.project.picker('order.globalproject_id', SELF.order.globalproject_id, style='width: 300px') %]</td>
83 <td colspan="2" align="center">
84 [%- IF SELF.order.id %]
85 <label for="order.delivered">[% 'Delivery Order(s) for full qty created' | $T8 %]</label>
86 [% L.yes_no_tag('order.delivered', SELF.order.delivered) %]
87 <label for="order.closed">[% 'Closed' | $T8 %]</label>
88 [% L.yes_no_tag('order.closed', SELF.order.closed) %]
94 <th align="right">[% 'Employee' | $T8 %]</th>
95 <td>[% L.select_tag('order.employee_id',
97 default=(SELF.order.employee_id ? SELF.order.employee_id : SELF.current_employee_id),
98 title_key='safe_name') %]</td>
101 [% IF SELF.cv == 'customer' %]
103 <th align="right">[% 'Salesman' | $T8 %]</th>
104 <td>[% L.select_tag('order.salesman_id',
106 default=(SELF.order.salesman_id ? SELF.order.salesman_id : SELF.current_employee_id),
107 title_key='safe_name') %]</td>
111 [%- IF (SELF.type == "sales_order" || SELF.type == "purchase_order") -%]
113 <th width="70%" align="right" nowrap>[% 'Order Number' | $T8 %]</th>
114 <td>[% L.input_tag('order.ordnumber', SELF.order.ordnumber, size = 11, onchange='kivi.Order.set_number_in_title(this)') %]</td>
118 [%- IF (SELF.type == "sales_order" || SELF.type == "sales_quotation") -%]
119 [%- SET quo_nr_txt = 'Quotation Number' -%]
121 [%- SET quo_nr_txt = 'RFQ Number' -%]
124 <th width="70%" align="right" nowrap>[% quo_nr_txt | $T8 %]</th>
125 [%- IF (SELF.type == "sales_order" || SELF.type == "purchase_order") -%]
126 <td>[% L.input_tag('order.quonumber', SELF.order.quonumber, size = 11) %]</td>
128 <td>[% L.input_tag('order.quonumber', SELF.order.quonumber, size = 11, onchange='kivi.Order.set_number_in_title(this)') %]</td>
132 [%- IF (SELF.type == "sales_order" || SELF.type == "purchase_order") -%]
134 <th width="70%" align="right" nowrap>[% 'Customer Order Number' | $T8 %]</th>
135 <td>[% L.input_tag('order.cusordnumber', SELF.order.cusordnumber, size = 11) %]</td>
139 [%- IF (SELF.type == "sales_order" || SELF.type == "purchase_order") -%]
140 [%- SET transdate_txt = 'Order Date' -%]
141 [%- ELSIF SELF.type == "sales_quotation" -%]
142 [%- SET transdate_txt = 'Quotation Date' -%]
144 [%- SET transdate_txt = 'RFQ Date' -%]
147 <th width="70%" align="right" nowrap>[% transdate_txt | $T8 %]</th>
148 <td>[% L.date_tag('order.transdate', SELF.order.transdate) %]</td>
151 [%- IF (SELF.type == "sales_order" || SELF.type == "purchase_order") -%]
152 [%- SET reqdate_txt = 'Reqdate' -%]
153 [%- ELSIF SELF.type == "sales_quotation" -%]
154 [%- SET reqdate_txt = 'Valid until' -%]
156 [%- SET reqdate_txt = 'Required by' -%]
159 <th width="70%" align="right" nowrap>[% reqdate_txt | $T8 %]</th>
160 <td>[% L.date_tag('order.reqdate', SELF.order.reqdate) %]</td>
163 [%- IF SELF.type == "sales_quotation" -%]
165 <th width="70%" align="right" nowrap>[% 'Order probability' | $T8 %]</th>
166 <td>[%- L.select_tag('order.order_probability', SELF.order_probabilities, title='title', default=SELF.order.order_probability) %]%</td>
169 <th width="70%" align="right" nowrap>[% 'Expected billing date' | $T8 %]</th>
170 <td>[%- L.date_tag('order.expected_billing_date', SELF.order.expected_billing_date) %]</td>
175 <th width="70%" align="right" nowrap>[% 'Insert Date' | $T8 %]</th>
176 <td>[% SELF.order.itime_as_date %]</td>
185 [%- PROCESS order/tabs/_item_input.html %]
187 [% L.button_tag('kivi.Order.show_multi_items_dialog()', LxERP.t8('Add multiple items')) %]
193 <div id="row_table_scroll_id" style="overflow-y: auto; height: 25vh">
194 <table id="row_table_id" width="100%">
196 <tr class="listheading">
197 <th class="listheading" style='text-align:center' nowrap width="1">
198 [%- IF MYCONFIG.show_form_details %]
199 [%- 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") %]
201 [%- L.img_tag(src="image/expand.svg", alt=LxERP.t8('Show all details'), title=LxERP.t8('Show all details'), id='expand_all') %]
204 <th class="listheading" nowrap width="3" >[%- 'position' | $T8 %] </th>
205 <th class="listheading" style='text-align:center' nowrap width="1"><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"></th>
206 <th class="listheading" style='text-align:center' nowrap width="1"><img src="image/close.png" alt="[%- LxERP.t8('delete item') %]"></th>
207 <th id="partnumber_header_id" class="listheading" nowrap width="15"><a href='#' onClick='javascript:kivi.Order.reorder_items("partnumber")'> [%- 'Partnumber' | $T8 %]</a></th>
208 <th id="partclass_header_id" class="listheading" nowrap width="2">[%- 'Type' | $T8 %]</th>
209 <th id="description_header_id" class="listheading" nowrap ><a href='#' onClick='javascript:kivi.Order.reorder_items("description")'>[%- 'Description' | $T8 %]</a></th>
210 <th id="qty_header_id" class="listheading" nowrap width="5" ><a href='#' onClick='javascript:kivi.Order.reorder_items("qty")'> [%- 'Qty' | $T8 %]</a></th>
211 <th class="listheading" nowrap width="5" >[%- 'Price Factor' | $T8 %] </th>
212 <th class="listheading" nowrap width="5" >[%- 'Unit' | $T8 %] </th>
213 <th class="listheading" nowrap width="5" >[%- 'Price Source' | $T8 %] </th>
214 <th id="sellprice_header_id" class="listheading" nowrap width="15" ><a href='#' onClick='javascript:kivi.Order.reorder_items("sellprice")'> [%- 'Price' | $T8 %]</a></th>
215 <th id="discount_header_id" class="listheading" nowrap width="15" ><a href='#' onClick='javascript:kivi.Order.reorder_items("discount")'> [%- 'Discount' | $T8 %]</a></th>
216 <th class="listheading" nowrap width="10">[%- 'Extended' | $T8 %] </th>
220 [%- FOREACH item = SELF.order.items_sorted %]
221 [%- PROCESS order/tabs/_row.html ITEM=item ID=item.id TYPE=SELF.type ALL_PRICE_FACTORS=SELF.all_price_factors %]
234 <td colspan="100%" width="100%">
240 <th align="left">[% 'Notes' | $T8 %]</th>
241 <th align="left">[% 'Internal Notes' | $T8 %]</th>
245 [% L.textarea_tag('order.notes', SELF.order.notes, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %]
248 [% L.textarea_tag('order.intnotes', SELF.order.intnotes, wrap="soft", style="width: 350px; height: 150px") %]
257 <th align="right">[% 'Payment Terms' | $T8 %]</th>
258 <td>[% L.select_tag('order.payment_id',
259 SELF.all_payment_terms,
260 default = SELF.order.payment_id,
262 title_key = 'description',
263 style = 'width: 250px') %]</td>
266 <th align="right">[% 'Delivery Terms' | $T8 %]</th>
267 <td>[% L.select_tag('order.delivery_term_id',
268 SELF.all_delivery_terms,
269 default = SELF.order.delivery_term_id,
271 title_key = 'description',
272 style = 'width: 250px') %]</td>
274 [%- IF SELF.type == "sales_order" %]
276 <th align="right">[%- 'Periodic Invoices' | $T8 %]</th>
277 <td>[% L.button_tag('kivi.Order.show_periodic_invoices_config_dialog()', LxERP.t8('Configure')) %]
278 (<span id='periodic_invoices_status'>[%- SELF.periodic_invoices_status -%]</span>)
279 <a href="doc/html/ch03.html#features.periodic-invoices.variables" target="_blank">?</a>
288 <tr id="taxincluded_row_id" [%- IF !SELF.taxes.size %]style="display:none"[%- END %]>
289 <td align=right colspan="2">
290 <label for="order.taxincluded"><b>[% 'Tax Included' | $T8 %]</b></label>
291 [% L.yes_no_tag('order.taxincluded', SELF.order.taxincluded, class='recalc') %]
295 <tr id="subtotal_row_id" [%- IF SELF.order.taxincluded %]style="display:none"[%- END %]>
296 <th align="right">[%- 'Subtotal' | $T8 %]</th>
298 [%- L.div_tag(SELF.order.netamount_as_number, id='netamount_id') %]
301 [%- FOREACH tax = SELF.taxes %]
302 [%- PROCESS order/tabs/_tax_row.html TAX=tax TAXINCLUDED=SELF.order.taxincluded %]
304 <tr id="amount_row_id">
305 <th align="right">[%- 'Total' | $T8 %]</th>
307 [%- L.div_tag(SELF.order.amount_as_number, id='amount_id') %]
322 [% L.sortable_element('#row_table_id') %]