X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/905d9eddfafc30dd4c53e892a6070035f28e6ce0..HEAD:/templates/webpages/part/_assortment.html diff --git a/templates/webpages/part/_assortment.html b/templates/webpages/part/_assortment.html index 934bdc459..6622311e1 100644 --- a/templates/webpages/part/_assortment.html +++ b/templates/webpages/part/_assortment.html @@ -2,6 +2,7 @@ [%- USE HTML %] [%- USE LxERP %] [%- USE L %] +[%- USE P %]
@@ -9,15 +10,16 @@ [% L.hidden_tag('assortment_id', SELF.part.id) %] +
- [% IF SELF.orphaned %] + [% IF SELF.orphaned || AUTH.assert('assortment_edit', 1) %] [% END %] - [% IF SELF.orphaned %] + [% IF SELF.orphaned || AUTH.assert('assortment_edit', 1) %] [% END %] @@ -26,6 +28,7 @@ + @@ -36,11 +39,11 @@ - [% IF SELF.orphaned %] + [% IF SELF.orphaned || AUTH.assert('assortment_edit', 1) %] - + @@ -50,16 +53,16 @@ - [% END %] + - + + - [% IF SELF.orphaned %] + [% IF SELF.orphaned || AUTH.assert('assortment_edit', 1) %] [% END %] @@ -70,13 +73,14 @@ +
[%- LxERP.t8('delete item') %][%- 'position' | $T8 %] [%- LxERP.t8('reorder item') %] [%- 'Partnumber' | $T8 %][%- 'Unit' | $T8 %] [%- 'Charge' | $T8 %] [%- 'Line Total' | $T8 %] [%- 'Price Factor' | $T8 %] [%- 'Sellprice' | $T8 %] [%- 'Lastcost' | $T8 %] [%- 'Partsgroup' | $T8 %]
[% 'Part' | $T8 %]:[% L.part_picker('add_items[+].parts_id', '', style='width: 300px', multiple=1, id='assortment_picker', action={set_multi_items='kivi.Part.set_multi_assortment_items'}) %][% P.part.picker('add_items[+].parts_id', '', style='width: 300px', multiple=1, id='assortment_picker', action={set_multi_items='kivi.Part.set_multi_assortment_items', commit_one='kivi.Part.add_assortment_item'}) %] [%- L.button_tag("kivi.Part.add_assortment_item()", LxERP.t8("Add")) %] [% L.button_tag('$("#assortment_picker").data("part_picker").open_dialog()', LxERP.t8('Add multiple items')) %] [% L.hidden_tag('add_items[].qty_as_number', 1) %] [% '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) %] + [%- 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_assortment_sellprice()", LxERP.t8("Set sellprice")) %] [% L.button_tag("kivi.Part.set_assortment_lastcost()", LxERP.t8("Set lastcost")) %]
- +
[% L.sortable_element('#assortment_rows') %]