[% L.hidden_tag('assembly_id', SELF.part.id) %]
+<div style="overflow-y: auto; height:65vh;">
<table id="assembly_items">
<thead>
<tr class="listheading">
<th class="listheading" nowrap width="5" >[%- 'Unit' | $T8 %] </th>
<th class="listheading" nowrap width="5" >[%- 'BOM' | $T8 %] </th>
<th class="listheading" nowrap width="5" >[%- 'Line Total' | $T8 %] </th>
+ <th class="listheading" nowrap width="5" >[%- 'Price Factor' | $T8 %] </th>
<th id="sellprice_header_id" class="listheading" nowrap width="10" ><a href='#' onClick='javascript:kivi.Part.reorder_items("sellprice")' >[%- 'Sellprice' | $T8 %]</a></th>
<th id="lastcost_header_id" class="listheading" nowrap width="10" ><a href='#' onClick='javascript:kivi.Part.reorder_items("lastcost")' >[%- 'Lastcost' | $T8 %]</a></th>
<th id="_header_id" class="listheading" nowrap width="15" ><a href='#' onClick='javascript:kivi.Part.reorder_items("partsgroup")' >[%- 'Partsgroup' | $T8 %]</a></th>
<td></td>
[% END %]
<td></td>
+ <td></td>
<td align="right">[% 'Totals' | $T8 %]:</td>
<td></td>
<td id="items_sellprice_sum" class="numeric">[%- LxERP.format_amount(items_sellprice_sum, 2, 0) %]</td>
<td></td>
</tr>
<tr>
+ [% IF SELF.orphaned || AUTH.assert('assembly_edit', 1) %]
<td></td>
<td></td>
+ [% END %]
+ <td></td>
<td></td>
<td></td>
<td></td>
</td>
</tr>
<tr>
+ [% IF SELF.orphaned || AUTH.assert('assembly_edit', 1) %]
<td></td>
<td></td>
+ [% END %]
+ <td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
+ <td></td>
<td align="right">[% L.button_tag("kivi.Part.set_assembly_sellprice()", LxERP.t8("Set sellprice")) %]</td>
<td></td>
</tr>
</tbody>
</table>
-
+</div>
[% L.sortable_element('#assembly_rows') %]
<div>