Group nach Partsgroup (Warengruppe) umbenannt
[kivitendo-erp.git] / templates / webpages / part / _multi_items_result.html
1 [%- USE T8 %][%- USE HTML %][%- USE L %][%- USE LxERP %][% USE P %]
2
3 <table id="multi_items">
4     <tr>
5       <td>[% 'for all' | $T8 %]
6       <td>[% L.input_tag("multi_items.all_qty", '', size = 5, class='numeric') %]</td>
7     </tr>
8     <tr>
9       <td colspan="5"><hr></td>
10     </tr>
11     <tr>
12       <th></th>
13       <th>[% 'Qty'       | $T8 %]</th>
14       <th>[% 'Unit'      | $T8 %]</th>
15       <th>[% 'Article'   | $T8 %]</th>
16       <th>[% 'Sellprice' | $T8 %]</th>
17       <th>[% 'Partsgroup' | $T8 %]</th>
18     </tr>
19   [%- FOREACH item = multi_items %]
20     <tr>
21       <td></td>
22       <td>
23         [% L.hidden_tag("add_items[+].parts_id", item.id) %]
24         [% L.input_tag("add_items[].qty_as_number", '', size = 5,
25                        class = 'multi_items_qty numeric', onclick = 'set_qty_to_one(this)') %]
26       </td>
27       <td>[% HTML.escape(item.unit) %]</td>
28       <td>[% P.part(item) %]</td>
29       <td class="numeric">[% HTML.escape(item.sellprice_as_number) %]</td>
30       <td class="numeric">[% HTML.escape(item.partsgroup.partsgroup) %]</td>
31     </tr>
32   [%- END %]
33 </table>
34
35 <script type='text/javascript'>
36   function set_qty_to_one(clicked) {
37     if ($(clicked).val() == '') {
38       $(clicked).val('[%- LxERP.format_amount(1.00, -2) %]');
39     }
40     $(clicked).select();
41   }
42
43   $('#multi_items_all_qty').change(function(event){
44     $('.multi_items_qty').val($(event.target).val());
45   });
46 </script>