]> wagnertech.de Git - mfinanz.git/blob - templates/design40_webpages/requirement_spec_order/update.html
date error in mapping
[mfinanz.git] / templates / design40_webpages / requirement_spec_order / update.html
1 [% USE HTML %]
2 [% USE LxERP %]
3 [% USE L %]
4 [% USE P %]
5
6 [% SET style = "width: 400px" %]
7 [% SET order = SELF.rs_order.order %]
8
9 <div id="quotations_and_orders_update" class="quotations-and-orders-update-context-menu">
10
11   <h2>
12     [% IF order.quotation %]
13       [% LxERP.t8("Update sales quotation #1", order.quonumber) %]
14     [% ELSE %]
15       [% LxERP.t8("Update sales order #1", order.ordnumber) %]
16     [% END %]
17   </h2>
18
19   <form id="quotations_and_orders_form">
20     <h3>[% LxERP.t8("Updating items with sections") %]</h3>
21
22     [% L.hidden_tag("rs_order_id", SELF.rs_order.id, no_id=1) %]
23
24     <table class="tbl-list">
25       <thead>
26         <tr>
27           <th>[% LxERP.t8("Part Number") %]</th>
28           <th>[% LxERP.t8("Description") %]</th>
29           <th class="right">[% LxERP.t8("Qty") %]</th>
30           <th class="right">[% LxERP.t8("Sellprice") %]</th>
31           <th>[% LxERP.t8("Update with section") %]</th>
32         </tr>
33       </thead>
34
35       <tbody>
36         [% FOREACH item = orderitems %]
37           <tr>
38             [% L.hidden_tag("orderitems[+].id", item.item.id, no_id=1) %]
39             <td>[% HTML.escape(item.item.part.partnumber) %]</td>
40             <td>[% HTML.escape(item.item.description_as_stripped_html) %]</td>
41             <td class="right">[% LxERP.format_amount(item.item.qty * 1) %] [% HTML.escape(item.item.unit) %]</td>
42             <td class="right">[% LxERP.format_amount(item.item.qty * 1) %] [% HTML.escape(item.item.unit) %]</td>
43             <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>
44           </tr>
45         [% END %]
46       </tbody>
47     </table>
48
49     <p>
50       [% LxERP.t8("Sections that are not assigned to any of the items above will be added as new positions.") %]
51     </p>
52
53     <h3>[% LxERP.t8("Updating items with additional parts") %]</h3>
54
55     <p>
56       [% LxERP.t8("You cannot modify individual assigments from additional articles to line items.") %]
57       [% LxERP.t8("They will be updated, new ones for additional parts without a line item added automatically.") %]
58     </p>
59
60     <p>
61       [% L.button_tag("kivi.requirement_spec.standard_quotation_order_ajax_call('do_update')", LxERP.t8('Update')) %]
62     </p>
63   </form>
64 </div>