1 [%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE P -%]
2 [% SET style = "width: 400px" %]
3 [% SET order = SELF.rs_order.order %]
5 <div id="quotations_and_orders_update" class="quotations-and-orders-update-context-menu">
8 [% IF order.quotation %]
9 [% LxERP.t8("Update sales quotation #1", order.quonumber) %]
11 [% LxERP.t8("Update sales order #1", order.ordnumber) %]
15 <form id="quotations_and_orders_form">
16 <h3>[% LxERP.t8("Updating items with sections") %]</h3>
18 [% L.hidden_tag("rs_order_id", SELF.rs_order.id, no_id=1) %]
20 <table style="width: 100%">
22 <tr class="listheading">
23 <th>[% LxERP.t8("Part Number") %]</th>
24 <th>[% LxERP.t8("Description") %]</th>
25 <th align="right">[% LxERP.t8("Qty") %]</th>
26 <th align="right">[% LxERP.t8("Sellprice") %]</th>
27 <th>[% LxERP.t8("Update with section") %]</th>
32 [% FOREACH item = orderitems %]
34 [% L.hidden_tag("orderitems[+].id", item.item.id, no_id=1) %]
35 <td>[% HTML.escape(item.item.part.partnumber) %]</td>
36 <td>[% HTML.escape(item.item.description_as_stripped_html) %]</td>
37 <td align="right">[% LxERP.format_amount(item.item.qty * 1) %] [% HTML.escape(item.item.unit) %]</td>
38 <td align="right">[% LxERP.format_amount(item.item.qty * 1) %] [% HTML.escape(item.item.unit) %]</td>
39 <td>[% 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')) %]</td>
46 [% LxERP.t8("Sections that are not assigned to any of the items above will be added as new positions.") %]
49 <h3>[% LxERP.t8("Updating items with additional parts") %]</h3>
52 [% LxERP.t8("You cannot modify individual assigments from additional articles to line items.") %]
53 [% LxERP.t8("They will be updated, new ones for additional parts without a line item added automatically.") %]
57 [% L.button_tag("kivi.requirement_spec.standard_quotation_order_ajax_call('do_update')", LxERP.t8('Update')) %]