[%- USE T8 %][%- USE HTML %][%- USE L %][%- USE LxERP %][% USE P %]
<table id="multi_items">
- <tr>
+ <tr class="listheading">
<td>[% 'for all' | $T8 %]
<td>[% L.input_tag("multi_items.all_qty", '', size = 5, class='numeric') %]</td>
</tr>
<tr>
- <td colspan="5"><hr></td>
+ <td colspan="6"><hr></td>
</tr>
<tr>
<th></th>
- <th>[% 'Qty' | $T8 %]</th>
- <th>[% 'Unit' | $T8 %]</th>
- <th>[% 'Article' | $T8 %]</th>
- <th>[% 'Sellprice' | $T8 %]</th>
+ <th>[% 'Qty' | $T8 %]</th>
+ <th>[% 'Unit' | $T8 %]</th>
+ <th>[% 'Article' | $T8 %]</th>
+ <th>[% 'Sellprice' | $T8 %]</th>
<th>[% 'Partsgroup' | $T8 %]</th>
</tr>
[%- FOREACH item = multi_items %]
- <tr>
+ <tr class="listrow">
<td></td>
<td>
[% L.hidden_tag("add_items[+].parts_id", item.id) %]
[% L.input_tag("add_items[].qty_as_number", '', size = 5,
- class = 'multi_items_qty numeric', onclick = 'set_qty_to_one(this)') %]
+ class = 'multi_items_qty numeric') %]
</td>
<td>[% HTML.escape(item.unit) %]</td>
- <td>[% P.part(item) %]</td>
+ <td>[% item.presenter.part %] [% HTML.escape(item.description) %]</td>
<td class="numeric">[% HTML.escape(item.sellprice_as_number) %]</td>
<td class="numeric">[% HTML.escape(item.partsgroup.partsgroup) %]</td>
</tr>
[%- END %]
</table>
-
-<script type='text/javascript'>
- function set_qty_to_one(clicked) {
- if ($(clicked).val() == '') {
- $(clicked).val('[%- LxERP.format_amount(1.00, -2) %]');
- }
- $(clicked).select();
- }
-
- $('#multi_items_all_qty').change(function(event){
- $('.multi_items_qty').val($(event.target).val());
- });
-</script>