X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=templates%2Fwebpages%2Fpart%2F_assembly.html;h=66b9a706504b9a2da3eee25f3510769bad7040ea;hb=3c69a99f86cb4c935becf708a9696920387d9172;hp=7d262f5f245781e88b35bff4099c2b880d5f97cb;hpb=5067d7bd31514962af9730b33323b831d87164f8;p=kivitendo-erp.git diff --git a/templates/webpages/part/_assembly.html b/templates/webpages/part/_assembly.html index 7d262f5f2..66b9a7065 100644 --- a/templates/webpages/part/_assembly.html +++ b/templates/webpages/part/_assembly.html @@ -29,7 +29,7 @@ [%- 'Line Total' | $T8 %] [%- 'Sellprice' | $T8 %] [%- 'Lastcost' | $T8 %] - [%- 'Group' | $T8 %] + [%- 'Partsgroup' | $T8 %] @@ -41,17 +41,18 @@ [% '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.part_picker('add_items[+].parts_id', '', style='width: 300px', 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.button_tag('kivi.Part.show_multi_items_dialog("assembly")', LxERP.t8('Add multiple items')) %] + [% L.button_tag('$("#assembly_picker").data("part_picker").open_dialog()', LxERP.t8('Add multiple items')) %] + [% L.hidden_tag('add_items[].qty_as_number', 1) %] [% ELSE %] - [% END %] + [% END %] [% 'Totals' | $T8 %]: [%- LxERP.format_amount(items_sellprice_sum, 2, 0) %]