Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / templates / webpages / requirement_spec_order / update.html
1 [%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE P -%]
2 [% SET style = "width: 400px" %]
3 [% SET order = SELF.rs_order.order %]
4
5 <div id="quotations_and_orders_update" class="quotations-and-orders-update-context-menu">
6
7  <h2>
8   [% IF order.quotation %]
9    [% LxERP.t8("Update sales quotation #1", order.quonumber) %]
10   [% ELSE %]
11    [% LxERP.t8("Update sales order #1", order.ordnumber) %]
12   [% END %]
13  </h2>
14
15  <form id="quotations_and_orders_form">
16   <h3>[% LxERP.t8("Updating items with sections") %]</h3>
17
18   [% L.hidden_tag("rs_order_id", SELF.rs_order.id, no_id=1) %]
19
20   <table style="width: 100%">
21    <thead>
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>
28     </tr>
29    </thead>
30
31    <tbody>
32     [% FOREACH item = orderitems %]
33     <tr class="listrow">
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>
40     </tr>
41     [% END %]
42    </tbody>
43   </table>
44
45   <p>
46    [% LxERP.t8("Sections that are not assigned to any of the items above will be added as new positions.") %]
47   </p>
48
49   <h3>[% LxERP.t8("Updating items with additional parts") %]</h3>
50
51   <p>
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.") %]
54   </p>
55
56   <p>
57    [% L.button_tag("kivi.requirement_spec.standard_quotation_order_ajax_call('do_update')", LxERP.t8('Update')) %]
58   </p>
59  </form>
60 </div>