]> wagnertech.de Git - mfinanz.git/blob - templates/design40_webpages/delivery_order/tabs/_row.html
date error in mapping
[mfinanz.git] / templates / design40_webpages / delivery_order / tabs / _row.html
1 [%- USE T8 %]
2 [%- USE HTML %]
3 [%- USE LxERP %]
4 [%- USE L %]
5 [%- USE P %]
6
7 <tbody class="row_entry listrow" data-position="[%- HTML.escape(ITEM.position) -%]"[%- IF MYCONFIG.show_form_details -%] data-expanded="1"[%- END -%]>
8   <tr>
9     <td>
10       [%- IF MYCONFIG.show_form_details %]
11         [% L.img_tag(src="image/collapse.svg",
12                      alt=LxERP.t8('Hide details'), title=LxERP.t8('Hide details'), class="expand row-icon") %]
13       [%- ELSE %]
14         [% L.img_tag(src="image/expand.svg",
15                      alt=LxERP.t8('Show details'), title=LxERP.t8('Show details'), class="expand row-icon") %]
16       [%- END %]
17       [% L.hidden_tag("orderitem_ids[+]", ID) %]
18       [% L.hidden_tag("converted_from_record_item_type_ref[+]", ITEM.converted_from_record_item_type_ref) %]
19       [% L.hidden_tag("converted_from_record_item_id[+]",       ITEM.converted_from_record_item_id) %]
20       [% L.hidden_tag("order.orderitems[+].id", ITEM.id, id='item_' _ ID) %]
21       [% L.hidden_tag("order.orderitems[].stock_info", ITEM.stock_info, class="data-stock-info") %]
22       [% L.hidden_tag("order.orderitems[].parts_id", ITEM.parts_id) %]
23       [% L.hidden_tag("order.orderitems[].sellprice", ITEM.sellprice) %]
24       [% L.hidden_tag("order.orderitems[].discount", ITEM.discount) %]
25       [% L.hidden_tag("order.orderitems[].ordnumber", ITEM.ordnumber) %]
26       [% L.hidden_tag("order.orderitems[].transdate", ITEM.transdate) %]
27       [% L.hidden_tag("order.orderitems[].cusordnumber", ITEM.cusordnumber) %]
28       [% L.hidden_tag("order.orderitems[].base_qty", ITEM.base_qty) %]
29       [% L.hidden_tag("order.orderitems[].lastcost", ITEM.lastcost) %]
30       [% L.hidden_tag("order.orderitems[].price_factor_id", ITEM.price_factor_id) %]
31       [% L.hidden_tag("order.orderitems[].price_factor", ITEM.price_factor) %]
32       [% L.hidden_tag("order.orderitems[].marge_price_factor", ITEM.marge_price_factor) %]
33       [% L.hidden_tag("order.orderitems[].pricegroup_id", ITEM.pricegroup_id) %]
34       [% L.hidden_tag("order.orderitems[].active_price_source", ITEM.active_price_source.source) %]
35       [% L.hidden_tag("order.orderitems[].active_discount_source", ITEM.active_discount_source.source) %]
36     </td>
37     <td class="center">
38       <div name="position">[% HTML.escape(ITEM.position) %]</div>
39     </td>
40     <td align="center">
41       <img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]" class="dragdrop">
42     </td>
43     <td>
44       [%- L.button_tag("kivi.DeliveryOrder.delete_order_item_row(this)",
45                        LxERP.t8("X"),
46                        confirm=LxERP.t8("Are you sure?")) %]
47     </td>
48     [%- IF SELF.show_update_button -%]
49     <td>
50       [%- L.img_tag(src="image/rotate_cw.svg",
51                     alt=LxERP.t8('Update from master data'),
52                     title= LxERP.t8('Update from master data'),
53                     onclick="if (!confirm('" _ LxERP.t8("Are you sure to update this position from master data?") _ "')) return false; kivi.DeliveryOrder.update_row_from_master_data(this);",
54                     id='update_from_master', class="row-icon") %]
55     </td>
56     [%- END -%]
57     <td>
58       <div name="partnumber">
59         [%- P.link_tag(SELF.url_for(controller='Part', action='edit', 'part.id'=ITEM.part.id), ITEM.part.partnumber, target="_blank", title=LxERP.t8('Open in new window')) -%]
60       </div>
61     </td>
62     [%- IF SELF.search_cvpartnumber -%]
63     <td>
64       <div name="cvpartnumber">[% HTML.escape(ITEM.cvpartnumber) %]</div>
65     </td>
66     [%- END -%]
67     <td>
68       <div name="partclassification">[% ITEM.part.presenter.typeclass_abbreviation %]</div>
69     </td>
70     <td>
71       [% L.areainput_tag("order.orderitems[].description",
72                      ITEM.description,
73                      size='40',
74                      class='wi-lightwide') %]
75       [%- L.hidden_tag("order.orderitems[].longdescription", ITEM.longdescription) %]
76       [%- L.button_tag("kivi.DeliveryOrder.show_longdescription_dialog(this)", LxERP.t8("L"), class="wi-tiny neutral") %]
77     </td>
78     [%- IF (SELF.type == "sales_order" || SELF.type == "purchase_order") -%]
79     <td nowrap>
80       [%- L.div_tag(LxERP.format_amount(ITEM.shipped_qty, 2, 0) _ ' ' _ ITEM.unit, name="shipped_qty", class="numeric") %]
81     </td>
82     [%- END -%]
83     <td nowrap>
84       [%- L.input_tag("order.orderitems[].qty_as_number",
85                       ITEM.qty_as_number,
86                       size = 5,
87                       class="reformat_number numeric wi-verysmall") %]
88       [%- IF ITEM.part.formel -%]
89         [%- L.button_tag("kivi.DeliveryOrder.show_calculate_qty_dialog(this)", LxERP.t8("*/"), class="neutral") %]
90         [%- L.hidden_tag("formula[+]", ITEM.part.formel) -%]
91       [%- END -%]
92     </td>
93     <td>
94       [%- L.select_tag("order.orderitems[].unit",
95                       ITEM.part.available_units,
96                       default = ITEM.unit,
97                       title_key = 'name',
98                       value_key = 'name',
99                       class = 'unitselect wi-mediumsmall') %]
100     </td>
101
102     <td>
103       <span id="stock_[% ID %]" class="data-stock-qty">[% SELF.calculate_stock_in_out(ITEM) %] [% ITEM.unit %]</span>
104       [% P.button_tag("kivi.DeliveryOrder.open_stock_in_out_dialog(this, '" _ in_out _"')", "?") %]
105     </td>
106   </tr>
107
108   <tr [%- IF !MYCONFIG.show_form_details -%]style="display:none"[%- END -%]>
109     <td colspan="100%">
110       [%- IF MYCONFIG.show_form_details || ITEM.render_second_row %]
111         <div name="second_row" data-loaded="1">
112           [%- PROCESS delivery_order/tabs/_second_row.html ITEM=ITEM TYPE=SELF.type %]
113         </div>
114       [%- ELSE %]
115         <div name="second_row" id="second_row_[% ID %]">
116           [%- LxERP.t8("Loading...") %]
117         </div>
118       [%- END %]
119     </td>
120   </tr>
121
122 </tbody>