[%- USE T8 %] [%- USE HTML %] [%- USE LxERP %] [%- USE L %] [%- USE P %] [%- INCLUDE 'generic/set_longdescription.html' %]
[% SET cv_id = SELF.cv _ '_id' %] [%- PROCESS order/tabs/_business_info_row.html SELF=SELF %] [%- IF SELF.all_departments.size %] [%- END %]
[% SELF.cv | $T8 %] [% P.customer_vendor.picker("order.${SELF.cv}" _ '_id', SELF.order.$cv_id, type=SELF.cv, style='width: 300px') %] [% P.button_tag("kivi.Order.show_vc_details_dialog()", LxERP.t8("Details (one letter abbreviation)")) %]
[% 'Contact Person' | $T8 %] [% L.select_tag('order.cp_id', SELF.order.${SELF.cv}.contacts, default=SELF.order.cp_id, title_key='full_name_dep', value_key='cp_id', with_empty=1, style='width: 300px') %]
[% 'Shipping Address' | $T8 %] [% L.select_tag('order.shipto_id', SELF.order.${SELF.cv}.shipto, default=SELF.order.shipto_id, title_key='displayable_id', value_key='shipto_id', with_empty=1, style='width: 300px') %]
[% 'Steuersatz' | $T8 %] [% L.select_tag('order.taxzone_id', SELF.all_taxzones, default=SELF.order.taxzone_id, title_key='description', style='width: 300px', class='recalc') %]
[% 'Department' | $T8 %] [% L.select_tag('order.department_id', SELF.all_departments, default=SELF.order.department_id, title_key='description', with_empty=1, style='width:300px') %]
[% 'Shipping Point' | $T8 %] [% L.input_tag('order.shippingpoint', SELF.order.shippingpoint, style='width: 300px') %]
[% 'Ship via' | $T8 %] [% L.input_tag('order.shipvia', SELF.order.shipvia, style='width: 300px') %]
[% 'Transaction description' | $T8 %] [% L.input_tag('order.transaction_description', SELF.order.transaction_description, style='width: 300px') %]
[% 'Project Number' | $T8 %] [% P.project.picker('order.globalproject_id', SELF.order.globalproject_id, style='width: 300px') %]
[% IF SELF.cv == 'customer' %] [% END %] [%- IF (SELF.type == "sales_order" || SELF.type == "purchase_order") -%] [%- END -%] [%- IF (SELF.type == "sales_order" || SELF.type == "sales_quotation") -%] [%- SET quo_nr_txt = 'Quotation Number' -%] [%- ELSE -%] [%- SET quo_nr_txt = 'RFQ Number' -%] [%- END -%] [%- IF (SELF.type == "sales_order" || SELF.type == "purchase_order") -%] [%- ELSE -%] [%- END -%] [%- IF (SELF.type == "sales_order" || SELF.type == "purchase_order") -%] [%- END -%] [%- IF (SELF.type == "sales_order" || SELF.type == "purchase_order") -%] [%- SET transdate_txt = 'Order Date' -%] [%- ELSIF SELF.type == "sales_quotation" -%] [%- SET transdate_txt = 'Quotation Date' -%] [%- ELSE -%] [%- SET transdate_txt = 'RFQ Date' -%] [%- END -%] [%- IF (SELF.type == "sales_order" || SELF.type == "purchase_order") -%] [%- SET reqdate_txt = 'Reqdate' -%] [%- ELSIF SELF.type == "sales_quotation" -%] [%- SET reqdate_txt = 'Valid until' -%] [%- ELSE -%] [%- SET reqdate_txt = 'Required by' -%] [%- END -%] [%- IF SELF.type == "sales_quotation" -%] [%- END %]
[%- IF SELF.order.id %] [% L.yes_no_tag('order.delivered', SELF.order.delivered) %] [% L.yes_no_tag('order.closed', SELF.order.closed) %] [%- END %]
[% 'Employee' | $T8 %] [% L.select_tag('order.employee_id', SELF.all_employees, default=(SELF.order.employee_id ? SELF.order.employee_id : SELF.current_employee_id), title_key='safe_name') %]
[% 'Salesman' | $T8 %] [% L.select_tag('order.salesman_id', SELF.all_salesmen, default=(SELF.order.salesman_id ? SELF.order.salesman_id : SELF.current_employee_id), title_key='safe_name') %]
[% 'Order Number' | $T8 %] [% L.input_tag('order.ordnumber', SELF.order.ordnumber, size = 11, onchange='kivi.Order.set_number_in_title(this)') %]
[% quo_nr_txt | $T8 %][% L.input_tag('order.quonumber', SELF.order.quonumber, size = 11) %][% L.input_tag('order.quonumber', SELF.order.quonumber, size = 11, onchange='kivi.Order.set_number_in_title(this)') %]
[% 'Customer Order Number' | $T8 %] [% L.input_tag('order.cusordnumber', SELF.order.cusordnumber, size = 11) %]
[% transdate_txt | $T8 %] [% L.date_tag('order.transdate', SELF.order.transdate) %]
[% reqdate_txt | $T8 %] [% L.date_tag('order.reqdate', SELF.order.reqdate) %]
[% 'Order probability' | $T8 %] [%- L.select_tag('order.order_probability', SELF.order_probabilities, title='title', default=SELF.order.order_probability) %]%
[% 'Expected billing date' | $T8 %] [%- L.date_tag('order.expected_billing_date', SELF.order.expected_billing_date) %]
[% 'Insert Date' | $T8 %] [% SELF.order.itime_as_date %]
[%- PROCESS order/tabs/_item_input.html %] [% L.button_tag('kivi.Order.show_multi_items_dialog()', LxERP.t8('Add multiple items')) %]
[%- IF (SELF.type == "sales_order" || SELF.type == "purchase_order") -%] [%- END -%] [%- FOREACH item = SELF.order.items_sorted %] [%- PROCESS order/tabs/_row.html ITEM=item ID=(item.id||item.new_fake_id) TYPE=SELF.type ALL_PRICE_FACTORS=SELF.all_price_factors %] [%- END %]
[%- IF MYCONFIG.show_form_details %] [%- 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") %] [%- ELSE %] [%- L.img_tag(src="image/expand.svg", alt=LxERP.t8('Show all details'), title=LxERP.t8('Show all details'), id='expand_all') %] [%- END %] [%- 'position' | $T8 %] [%- LxERP.t8('reorder item') %] [%- LxERP.t8('delete item') %] [%- 'Partnumber' | $T8 %] [%- 'Type' | $T8 %] [%- 'Description' | $T8 %][%- 'Delivered' | $T8 %] [%- 'Qty' | $T8 %] [%- 'Price Factor' | $T8 %] [%- 'Unit' | $T8 %] [%- 'Price Source' | $T8 %] [%- 'Price' | $T8 %] [%- 'Discount' | $T8 %] [%- 'Extended' | $T8 %]
[% 'Notes' | $T8 %] [% 'Internal Notes' | $T8 %]
[% L.textarea_tag('order.notes', SELF.order.notes, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %] [% L.textarea_tag('order.intnotes', SELF.order.intnotes, wrap="soft", style="width: 350px; height: 150px") %]
[%- IF SELF.type == "sales_order" %] [%- END %]
[% 'Payment Terms' | $T8 %] [% L.select_tag('order.payment_id', SELF.all_payment_terms, default = SELF.order.payment_id, with_empty = 1, title_key = 'description', style = 'width: 250px') %]
[% 'Delivery Terms' | $T8 %] [% L.select_tag('order.delivery_term_id', SELF.all_delivery_terms, default = SELF.order.delivery_term_id, with_empty = 1, title_key = 'description', style = 'width: 250px') %]
[%- 'Periodic Invoices' | $T8 %] [% L.button_tag('kivi.Order.show_periodic_invoices_config_dialog()', LxERP.t8('Configure')) %] ([%- SELF.periodic_invoices_status -%]) ?
[%- FOREACH tax = SELF.taxes %] [%- PROCESS order/tabs/_tax_row.html TAX=tax TAXINCLUDED=SELF.order.taxincluded %] [%- END %]
[% L.yes_no_tag('order.taxincluded', SELF.order.taxincluded, class='recalc') %]
[%- 'Subtotal' | $T8 %] [%- L.div_tag(SELF.order.netamount_as_number, id='netamount_id') %]
[%- 'Total' | $T8 %] [%- L.div_tag(SELF.order.amount_as_number, id='amount_id') %]
[% L.sortable_element('#row_table_id') %]