6 <tbody class="row_entry">
9 <td style='display:none'>
10 [% L.hidden_tag("orderitem_ids[+]", ID) %]
11 [% L.hidden_tag("order.orderitems[+].id", ITEM.id, id='item_' _ ID) %]
12 [% L.hidden_tag("order.orderitems[].parts_id", ITEM.parts_id) %]
15 <img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]" class="dragdrop">
18 [%- L.button_tag("delete_order_item_row(this)",
20 confirm=LxERP.t8("Are you sure?")) %]
23 [% HTML.escape(ITEM.part.partnumber) %]
26 [% L.input_tag("order.orderitems[].description",
28 style='width: 300px') %]
31 [%- L.input_tag("order.orderitems[].qty_as_number",
34 style='text-align:right',
35 class="recalc reformat_number") %]
38 [%- L.input_tag("order.orderitems[].price_factor",
41 style='text-align:right',
45 [%- L.select_tag("order.orderitems[].unit",
46 ITEM.part.available_units,
50 class = 'unitselect') %]
53 [%- L.button_tag("price_chooser_item_row(this)",
54 ITEM.active_price_source.source_description _ ' | ' _ ITEM.active_discount_source.source_description,
55 name = "price_chooser_button") %]
58 [%- L.hidden_tag("order.orderitems[].active_price_source", ITEM.active_price_source.source) %]
59 [%- SET EDIT_PRICE = (AUTH.assert('edit_prices', 1) && ITEM.active_price_source.source == '') %]
60 <div name="editable_price" [%- IF !EDIT_PRICE %]style="display:none"[%- END %]>
61 [%- L.input_tag("order.orderitems[].sellprice_as_number",
62 ITEM.sellprice_as_number,
64 style='text-align:right',
65 disabled=(EDIT_PRICE? '' : 1),
66 class="recalc reformat_number") %]
68 <div name="not_editable_price" [%- IF EDIT_PRICE %]style="display:none"[%- END %]>
69 [%- L.div_tag(ITEM.sellprice_as_number, name="sellprice_text", style='text-align:right') %]
70 [%- L.hidden_tag("order.orderitems[].sellprice_as_number",
71 ITEM.sellprice_as_number,
72 disabled=(EDIT_PRICE? 1 : '')) %]
76 [%- L.hidden_tag("order.orderitems[].active_discount_source", ITEM.active_discount_source.source) %]
77 [%- SET EDIT_DISCOUNT = (AUTH.assert('edit_prices', 1) && ITEM.active_discount_source.source == '') %]
78 <div name="editable_discount" [%- IF !EDIT_DISCOUNT %]style="display:none"[%- END %]>
79 [%- L.input_tag("order.orderitems[].discount_as_percent",
80 ITEM.discount_as_percent,
82 style='text-align:right',
83 disabled=(EDIT_DISCOUNT? '' : 1),
84 class="recalc reformat_number") %]
86 <div name="not_editable_discount" [%- IF EDIT_DISCOUNT %]style="display:none"[%- END %]>
87 [%- L.div_tag(ITEM.discount_as_percent, name="discount_text", style='text-align:right') %]
88 [%- L.hidden_tag("order.orderitems[].discount_as_percent",
89 ITEM.discount_as_percent,
90 disabled=(EDIT_DISCOUNT? 1 : '')) %]
94 [%- L.div_tag(LxERP.format_amount(ITEM.linetotal, 2, 0), name="linetotal") %]
99 <tr class="listrow1" style="display:none">
102 <tr class="listrow1">
104 [%- FOREACH var = ITEM.cvars_by_config %]
105 [%- NEXT UNLESS (var.config.processed_flags.editable && ITEM.part.cvar_by_name(var.config.name).is_valid) %]
108 [% var.config.description %]
111 [% L.hidden_tag('order.orderitems[].custom_variables[+].config_id', var.config.id) %]
112 [% L.hidden_tag('order.orderitems[].custom_variables[].id', var.id) %]
113 [% L.hidden_tag('order.orderitems[].custom_variables[].sub_module', var.sub_module) %]
114 [% INCLUDE 'common/render_cvar_input.html' var_name='order.orderitems[].custom_variables[].unparsed_value' %]
116 [%- IF (n % (MYCONFIG.form_cvars_nr_cols || 3)) == 0 %]
117 </tr><tr class="listrow1">