7 <tbody class="row_entry listrow"[%- IF MYCONFIG.show_form_details -%] data-expanded="1"[%- END -%]>
10 [%- IF MYCONFIG.show_form_details %]
11 [% L.img_tag(src="image/collapse.svg",
12 alt=LxERP.t8('Hide details'), title=LxERP.t8('Hide details'), class="expand") %]
14 [% L.img_tag(src="image/expand.svg",
15 alt=LxERP.t8('Show details'), title=LxERP.t8('Show details'), class="expand") %]
17 [% L.hidden_tag("orderitem_ids[+]", ID) %]
18 [% L.hidden_tag("order.orderitems[+].id", ITEM.id, id='item_' _ ID) %]
19 [% L.hidden_tag("order.orderitems[].parts_id", ITEM.parts_id) %]
22 <div name="position" class="numeric">
23 [% HTML.escape(ITEM.position) %]
27 <img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]" class="dragdrop">
30 [%- L.button_tag("kivi.Order.delete_order_item_row(this)",
32 confirm=LxERP.t8("Are you sure?")) %]
35 <div name="partnumber">[% HTML.escape(ITEM.part.partnumber) %]</div>
38 <div name="partclassification">[% P.typeclass_abbreviation(ITEM.part) %]</div>
41 [% L.input_tag("order.orderitems[].description",
43 style='width: 300px') %]
44 [%- L.button_tag("kivi.Order.show_longdescription_dialog(this)", LxERP.t8("L")) %]
47 [%- L.input_tag("order.orderitems[].qty_as_number",
50 class="recalc reformat_number numeric") %]
53 [%- L.select_tag("order.orderitems[].price_factor_id",
55 default = ITEM.price_factor_id,
56 title_key = 'description',
61 [%- L.select_tag("order.orderitems[].unit",
62 ITEM.part.available_units,
66 class = 'unitselect') %]
69 [%- L.button_tag("kivi.Order.price_chooser_item_row(this)",
70 ITEM.active_price_source.source_description _ ' | ' _ ITEM.active_discount_source.source_description,
71 name = "price_chooser_button") %]
74 [%- L.hidden_tag("order.orderitems[].active_price_source", ITEM.active_price_source.source) %]
75 [%- SET EDIT_PRICE = (AUTH.assert('edit_prices', 1) && ITEM.active_price_source.source == '') %]
76 <div name="editable_price" [%- IF !EDIT_PRICE %]style="display:none"[%- END %] class="numeric">
77 [%- L.input_tag("order.orderitems[].sellprice_as_number",
78 ITEM.sellprice_as_number,
80 disabled=(EDIT_PRICE? '' : 1),
81 class="recalc reformat_number numeric") %]
83 <div name="not_editable_price" [%- IF EDIT_PRICE %]style="display:none"[%- END %]>
84 [%- L.div_tag(ITEM.sellprice_as_number, name="sellprice_text", class="numeric") %]
85 [%- L.hidden_tag("order.orderitems[].sellprice_as_number",
86 ITEM.sellprice_as_number,
87 disabled=(EDIT_PRICE? 1 : '')) %]
91 [%- L.hidden_tag("order.orderitems[].active_discount_source", ITEM.active_discount_source.source) %]
92 [%- SET EDIT_DISCOUNT = (AUTH.assert('edit_prices', 1) && ITEM.active_discount_source.source == '') %]
93 <div name="editable_discount" [%- IF !EDIT_DISCOUNT %]style="display:none"[%- END %] class="numeric">
94 [%- L.input_tag("order.orderitems[].discount_as_percent",
95 ITEM.discount_as_percent,
97 disabled=(EDIT_DISCOUNT? '' : 1),
98 class="recalc reformat_number numeric") %]
100 <div name="not_editable_discount" [%- IF EDIT_DISCOUNT %]style="display:none"[%- END %]>
101 [%- L.div_tag(ITEM.discount_as_percent, name="discount_text", class="numeric") %]
102 [%- L.hidden_tag("order.orderitems[].discount_as_percent",
103 ITEM.discount_as_percent,
104 disabled=(EDIT_DISCOUNT? 1 : '')) %]
108 [%- L.div_tag(LxERP.format_amount(ITEM.linetotal, 2, 0), name="linetotal") %]
113 <tr [%- IF !MYCONFIG.show_form_details -%]style="display:none"[%- END -%]>
115 [%- IF MYCONFIG.show_form_details %]
116 <div name="second_row" data-loaded="1">
117 [%- PROCESS order/tabs/_second_row.html ITEM=ITEM %]
120 <div name="second_row">
121 [%- LxERP.t8("Loading...") %]