[%- USE T8 %] [%- USE HTML %] [%- USE LxERP %] [%- USE L %]

[% 'Assembly items' | $T8 %]

[% L.hidden_tag('assembly_id', SELF.part.id) %] [% IF SELF.orphaned %] [% END %] [% IF SELF.orphaned %] [% END %] [% assembly_html %] [% IF SELF.orphaned %] [% ELSE %] [% END %] [% IF SELF.orphaned %] [% END %]
[%- LxERP.t8('delete item') %][%- 'position' | $T8 %] [%- LxERP.t8('reorder item') %][%- 'Partnumber' | $T8 %] [%- 'Description' | $T8 %] [%- 'Qty' | $T8 %] [%- 'Unit' | $T8 %] [%- 'BOM' | $T8 %] [%- 'Line Total' | $T8 %] [%- 'Sellprice' | $T8 %] [%- 'Lastcost' | $T8 %] [%- 'Group' | $T8 %]
[% 'Part' | $T8 %]: [% L.part_picker('add_items[+].parts_id' , '' , style='width: 300px' , class="add_assembly_item_input") %][% L.hidden_tag('add_items[].qty_as_number', 1) %] [%- L.button_tag("kivi.Part.add_assembly_item()", LxERP.t8("Add")) %] [% L.button_tag('kivi.Part.show_multi_items_dialog("assembly")', LxERP.t8('Add multiple items')) %] [% 'Totals' | $T8 %]: [%- LxERP.format_amount(items_sellprice_sum, 2, 0) %] [%- LxERP.format_amount(items_lastcost_sum, 2, 0) %] [%- LxERP.format_amount(items_sum_diff, 2, 0) %]
[% L.button_tag("kivi.Part.set_assembly_sellprice()", LxERP.t8("Set sellprice")) %]
[% L.sortable_element('#assembly_rows') %]