[%- USE T8 %] [%- USE HTML %] [%- USE LxERP %] [%- USE L %]
[% SET cv_id = SELF.cv _ '_id' %]
[% SELF.cv | $T8 %][% L.customer_vendor_picker("order.${SELF.cv}" _ '_id', SELF.order.$cv_id, type=SELF.cv, style='width: 300px') %]
[% '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') %]
[% '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') %]
[%- IF SELF.order.closed %] [% 'Closed' | $T8 %] [%- ELSE %] [% 'Open' | $T8 %] [%- 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') %]
[% 'Order Number' | $T8 %] [% L.input_tag('order.ordnumber', SELF.order.ordnumber, size = 11) %]
[% 'Customer Order Number' | $T8 %] [% L.input_tag('order.cusordnumber', SELF.order.cusordnumber, size = 11) %]
[% 'Order Date' | $T8 %] [% L.date_tag('order.transdate', SELF.order.transdate) %]
[% 'Project Number' | $T8 %] [%- L.select_tag('order.globalproject_id', SELF.all_projects, default=SELF.order.globalproject_id, title_key='projectnumber', with_empty = 1) %]
[%- 'Part' | $T8 %] [%- 'Qty' | $T8 %] [%- 'Price' | $T8 %] [%- 'Discount' | $T8 %]
[% L.part_picker('add_item.parts_id', '', style='width: 300px') %] [% L.input_tag('add_item.qty_as_number', '', size = 5, style='text-align:right') %] [% L.input_tag('add_item.sellprice_as_number', '', size = 10, style='text-align:right') %] [% L.input_tag('add_item.discount_as_percent', '', size = 5, style='text-align:right') %] [% L.button_tag('add_item()', LxERP.t8('Add part')) %]
[%- FOREACH item = SELF.order.items_sorted %] [%- PROCESS order/tabs/_row.html ITEM=item %] [%- END %]
[%- LxERP.t8('reorder item') %] [%- LxERP.t8('delete item') %] [%- 'Part' | $T8 %] [%- 'Qty' | $T8 %] [%- 'Price Factor' | $T8 %] [%- 'Unit' | $T8 %] [%- 'Price' | $T8 %] [%- 'Discount' | $T8 %] [%- 'Extended' | $T8 %]
[%- IF NOT taxincluded %] [%- END %] [%- FOREACH tax = SELF.taxes %] [%- PROCESS order/tabs/_tax_row.html TAX=tax %] [%- END %]
[%- '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 tbody') %]