62f5ccf79ec963509dabf9b2448e1fa135972834
[kivitendo-erp.git] / templates / webpages / order / tabs / _item_input.html
1 [%- USE T8 %][%- USE HTML %][%- USE LxERP %][%- USE L %][%- USE P %]
2
3  <div>
4   <table id="input_row_table_id">
5     <thead>
6       <tr class="listheading">
7         <th class="listheading" nowrap >[%- 'position'     | $T8 %] </th>
8         <th class="listheading" nowrap >[%- 'Part'         | $T8 %] </th>
9         <th class="listheading" nowrap >[%- 'Description'  | $T8 %] </th>
10         <th class="listheading" nowrap width="5" >[%- 'Qty'          | $T8 %] </th>
11         <th class="listheading" nowrap width="15">[%- 'Price'        | $T8 %] </th>
12         <th class="listheading" nowrap width="5" >[%- 'Discount'     | $T8 %] </th>
13         <th></th>
14       </tr>
15     </thead>
16     <tbody>
17       <tr valign="top" class="listrow">
18         <td>[% L.input_tag('add_item.position', '', size = 5, class="add_item_input numeric") %]</td>
19         <td>
20           [%- SET PARAM_KEY = SELF.cv == "customer" ? 'with_customer_partnumber' : 'with_makemodel' -%]
21           [%- SET PARAM_VAL = SELF.search_cvpartnumber -%]
22           [% P.part.picker('add_item.parts_id', '', style='width: 300px', class="add_item_input",
23                             fat_set_item=1,
24                             multiple_pos_input=1,
25                             action={set_multi_items='kivi.Order.add_multi_items'},
26                             classification_id=SELF.part_picker_classification_ids.as_list.join(','),
27                             $PARAM_KEY=PARAM_VAL) %]</td>
28         <td>[% L.input_tag('add_item.description', '', class="add_item_input") %]</td>
29         <td>
30           [% L.input_tag('add_item.qty_as_number', '', size = 5, class="add_item_input numeric") %]
31           [% L.hidden_tag('add_item.unit', '', class="add_item_input") %]
32         </td>
33         <td>[% L.input_tag('add_item.sellprice_as_number', '', size = 10, class="add_item_input numeric") %]</td>
34         <td>[% L.input_tag('add_item.discount_as_percent', '', size = 5, class="add_item_input numeric") %]</td>
35         <td>[% L.button_tag('kivi.Order.add_item()', LxERP.t8('Add part')) %]</td>
36       </tr>
37     </tbody>
38   </table>
39  </div>