[% USE T8 %] [% USE HTML %] [% USE LxERP %] [% USE L %] [% USE P %]
![]() |
[% END %]
[% 'position' | $T8 %] | [% IF SELF.orphaned || AUTH.assert('assembly_edit', 1) %]![]() |
[% END %]
[% 'Partnumber' | $T8 %] | [% 'Type' | $T8 %] | [% 'Description' | $T8 %] | [% 'Qty' | $T8 %] | [% 'Unit' | $T8 %] | [% 'BOM' | $T8 %] | [% 'Line Total' | $T8 %] | [% 'Sellprice'| $T8 %] | [% 'Lastcost' | $T8 %] | [% 'Partsgroup' | $T8 %] | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
[% 'Part' | $T8 %] | [% P.part.picker( 'add_items[+].parts_id', '', class='wi-lightwide', multiple='1', id='assembly_picker', action={set_multi_items='kivi.Part.set_multi_assembly_items', commit_one='kivi.Part.add_assembly_item'} ) %] [% L.button_tag("kivi.Part.add_assembly_item()", LxERP.t8("Add")) %] [% L.hidden_tag('add_items[].qty_as_number', 1) %] | [% ELSE %][% END %] | [% #'Totals' | $T8 %][% #":" %] | [% LxERP.format_amount(items_sellprice_sum, 2, 0) %] | [% LxERP.format_amount(items_lastcost_sum, 2, 0) %] | |||||||||||||
[% 'Margepercent' | $T8 %]: | [% IF items_sellprice_sum > 0 %] [%- LxERP.format_amount(100 - items_lastcost_sum / items_sellprice_sum * 100, 2, 0) %] [% END %] | |||||||||||||||||
[% 'Margetotal' | $T8 %]: | [%- LxERP.format_amount(items_sum_diff, 2, 0) %] | |||||||||||||||||
[% END %] | [% L.button_tag('$("#assembly_picker").data("part_picker").open_dialog()', LxERP.t8('Add multiple items'), class="neutral") %] | [% L.button_tag("kivi.Part.set_assembly_sellprice()", LxERP.t8("Set sellprice")) %] |