6 <tbody class="row_entry listrow"[%- IF MYCONFIG.show_form_details -%] data-expanded="1"[%- END -%]>
9 [%- IF MYCONFIG.show_form_details %]
10 [% L.img_tag(src="image/collapse.svg",
11 alt=LxERP.t8('Hide details'), title=LxERP.t8('Hide details'), class="expand") %]
13 [% L.img_tag(src="image/expand.svg",
14 alt=LxERP.t8('Show details'), title=LxERP.t8('Show details'), class="expand") %]
16 [% L.hidden_tag("orderitem_ids[+]", ID) %]
17 [% L.hidden_tag("order.orderitems[+].id", ITEM.id, id='item_' _ ID) %]
18 [% L.hidden_tag("order.orderitems[].parts_id", ITEM.parts_id) %]
21 <div name="position" class="numeric">
22 [% HTML.escape(ITEM.position) %]
26 <img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]" class="dragdrop">
29 [%- L.button_tag("kivi.Order.delete_order_item_row(this)",
31 confirm=LxERP.t8("Are you sure?")) %]
34 <div name="partnumber">[% HTML.escape(ITEM.part.partnumber) %]</div>
37 [% L.input_tag("order.orderitems[].description",
39 style='width: 300px') %]
40 [%- L.button_tag("kivi.Order.show_longdescription_dialog(this)", LxERP.t8("L")) %]
43 [%- L.input_tag("order.orderitems[].qty_as_number",
46 class="recalc reformat_number numeric") %]
49 [%- L.select_tag("order.orderitems[].price_factor_id",
51 default = ITEM.price_factor_id,
52 title_key = 'description',
57 [%- L.select_tag("order.orderitems[].unit",
58 ITEM.part.available_units,
62 class = 'unitselect') %]
65 [%- L.button_tag("kivi.Order.price_chooser_item_row(this)",
66 ITEM.active_price_source.source_description _ ' | ' _ ITEM.active_discount_source.source_description,
67 name = "price_chooser_button") %]
70 [%- L.hidden_tag("order.orderitems[].active_price_source", ITEM.active_price_source.source) %]
71 [%- SET EDIT_PRICE = (AUTH.assert('edit_prices', 1) && ITEM.active_price_source.source == '') %]
72 <div name="editable_price" [%- IF !EDIT_PRICE %]style="display:none"[%- END %] class="numeric">
73 [%- L.input_tag("order.orderitems[].sellprice_as_number",
74 ITEM.sellprice_as_number,
76 disabled=(EDIT_PRICE? '' : 1),
77 class="recalc reformat_number numeric") %]
79 <div name="not_editable_price" [%- IF EDIT_PRICE %]style="display:none"[%- END %]>
80 [%- L.div_tag(ITEM.sellprice_as_number, name="sellprice_text", class="numeric") %]
81 [%- L.hidden_tag("order.orderitems[].sellprice_as_number",
82 ITEM.sellprice_as_number,
83 disabled=(EDIT_PRICE? 1 : '')) %]
87 [%- L.hidden_tag("order.orderitems[].active_discount_source", ITEM.active_discount_source.source) %]
88 [%- SET EDIT_DISCOUNT = (AUTH.assert('edit_prices', 1) && ITEM.active_discount_source.source == '') %]
89 <div name="editable_discount" [%- IF !EDIT_DISCOUNT %]style="display:none"[%- END %] class="numeric">
90 [%- L.input_tag("order.orderitems[].discount_as_percent",
91 ITEM.discount_as_percent,
93 disabled=(EDIT_DISCOUNT? '' : 1),
94 class="recalc reformat_number numeric") %]
96 <div name="not_editable_discount" [%- IF EDIT_DISCOUNT %]style="display:none"[%- END %]>
97 [%- L.div_tag(ITEM.discount_as_percent, name="discount_text", class="numeric") %]
98 [%- L.hidden_tag("order.orderitems[].discount_as_percent",
99 ITEM.discount_as_percent,
100 disabled=(EDIT_DISCOUNT? 1 : '')) %]
104 [%- L.div_tag(LxERP.format_amount(ITEM.linetotal, 2, 0), name="linetotal") %]
109 <tr [%- IF !MYCONFIG.show_form_details -%]style="display:none"[%- END -%]>
111 [%- IF MYCONFIG.show_form_details %]
112 <div name="second_row" data-loaded="1">
113 [%- PROCESS order/tabs/_second_row.html ITEM=ITEM %]
116 <div name="second_row">
117 [%- LxERP.t8("Loading...") %]