]> wagnertech.de Git - mfinanz.git/blob - templates/webpages/order/tabs/_item_below_input.html
date error in mapping
[mfinanz.git] / templates / webpages / order / tabs / _item_below_input.html
1 [%- USE T8 %]
2 [%- USE HTML %]
3 [%- USE LxERP %]
4 [%- USE L %]
5 [%- USE P %]
6
7   <tr>
8     <td>
9       [% L.button_tag('kivi.Order.create_part()', LxERP.t8('+'), title=LxERP.t8('Create a new article from line')) %]
10     </td>
11     <td>[% L.input_tag('add_item.position', '', size = 5, class="add_item_input numeric") %]</td>
12     <td></td>
13     <td></td>
14     [%- IF SELF.show_update_button -%]
15     <td></td>
16     [%- END -%]
17     <td colspan="[%- IF SELF.search_cvpartnumber -%]2[% ELSE %]1[% END %]">
18           [%- SET PARAM_KEY = SELF.cv == "customer" ? 'with_customer_partnumber' : 'with_makemodel' -%]
19           [%- SET PARAM_VAL = SELF.search_cvpartnumber -%]
20           [% P.part.picker('add_item.parts_id', SELF.created_part, style='width: 300px', class="add_item_input",
21                             multiple_pos_input=1,
22                             action={set_multi_items='kivi.Order.add_multi_items'},
23                             classification_id=SELF.part_picker_classification_ids.as_list.join(','),
24                             not_order_locked=SELF.type_data.no_order_locked_parts,
25                             $PARAM_KEY=PARAM_VAL) %]</td>
26     </td>
27     <td>
28           [% SET type_options = [[ 'part', LxERP.t8('Part') ], [ 'assembly', LxERP.t8('Assembly') ], [ 'service', LxERP.t8('Service') ], [ 'assortment', LxERP.t8('Assortment')] ] %]
29           [% L.select_tag('add_item.create_part_type', type_options) %]
30     </td>
31     <td>[% L.input_tag('add_item.description', SELF.created_part.description, size="40", class="add_item_input", style="wiidth: 300px") %]</td>
32     [%- IF (SELF.type == "sales_order_intake" || SELF.type == "sales_order" || SELF.type == "purchase_order" || SELF.type == "purchase_order_confirmation") -%]
33     <td></td>
34     [%- END -%]
35     <td>
36         [% L.input_tag('add_item.qty_as_number', '', placeholder="1", size = 5, class="add_item_input numeric") %]
37         [% L.hidden_tag('add_item.unit', SELF.created_part.unit, class="add_item_input") %]
38     </td>
39     <td></td>
40     <td></td>
41     <td></td>
42     <td>[% L.input_tag('add_item.sellprice_as_number', price, size = 10, class="add_item_input numeric tooltipster-html") %]</td>
43     <td>[% L.input_tag('add_item.discount_as_percent', '', size = 5, class="add_item_input numeric tooltipster-html") %]</td>
44     <td>
45       [% L.button_tag('kivi.Order.add_item()', LxERP.t8('Add part')) %]
46     </td>
47
48   </tr>