[%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE P -%] [% SET style = "width: 400px" %] [% SET order = SELF.rs_order.order %]

[% IF order.quotation %] [% LxERP.t8("Update sales quotation #1", order.quonumber) %] [% ELSE %] [% LxERP.t8("Update sales order #1", order.ordnumber) %] [% END %]

[% LxERP.t8("Updating items with sections") %]

[% L.hidden_tag("rs_order_id", SELF.rs_order.id, no_id=1) %] [% FOREACH item = orderitems %] [% L.hidden_tag("orderitems[+].id", item.item.id, no_id=1) %] [% END %]
[% LxERP.t8("Part Number") %] [% LxERP.t8("Description") %] [% LxERP.t8("Qty") %] [% LxERP.t8("Sellprice") %] [% LxERP.t8("Update with section") %]
[% HTML.escape(item.item.part.partnumber) %] [% HTML.escape(item.item.description_as_stripped_html) %] [% LxERP.format_amount(item.item.qty * 1) %] [% HTML.escape(item.item.unit) %] [% LxERP.format_amount(item.item.qty * 1) %] [% HTML.escape(item.item.unit) %] [% L.select_tag('orderitems[].section_id', sections, default=item.section.id, title_sub=\make_section_title, style=style, no_id=1, with_empty=1, empty_title=LxERP.t8('Do not modify this position')) %]

[% LxERP.t8("Sections that are not assigned to any of the items above will be added as new positions.") %]

[% LxERP.t8("Updating items with additional parts") %]

[% LxERP.t8("You cannot modify individual assigments from additional articles to line items.") %] [% LxERP.t8("They will be updated, new ones for additional parts without a line item added automatically.") %]

[% L.button_tag("kivi.requirement_spec.standard_quotation_order_ajax_call('do_update')", LxERP.t8('Update')) %]