X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/67814d7d3ae60f48c7f970474de7b102e93639a2..refs/heads/master:/templates/webpages/part/_assembly.html diff --git a/templates/webpages/part/_assembly.html b/templates/webpages/part/_assembly.html index bec2f89d1..e10ec738b 100644 --- a/templates/webpages/part/_assembly.html +++ b/templates/webpages/part/_assembly.html @@ -2,6 +2,7 @@ [%- USE HTML %] [%- USE LxERP %] [%- USE L %] +[%- USE P %]
| [%- 'Unit' | $T8 %] | [%- 'BOM' | $T8 %] | [%- 'Line Total' | $T8 %] | +[%- 'Price Factor' | $T8 %] | [%- 'Sellprice' | $T8 %] | [%- 'Lastcost' | $T8 %] | [%- 'Partsgroup' | $T8 %] | @@ -41,7 +44,7 @@[% 'Part' | $T8 %]: | -[% 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'}) %] | +[% P.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('$("#assembly_picker").data("part_picker").open_dialog()', LxERP.t8('Add multiple items')) %] | [% L.hidden_tag('add_items[].qty_as_number', 1) %] | @@ -51,12 +54,49 @@- | [% END %] + | + | [% 'Totals' | $T8 %]: | [%- LxERP.format_amount(items_sellprice_sum, 2, 0) %] | [%- LxERP.format_amount(items_lastcost_sum, 2, 0) %] | ++ | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| + | + [% END %] + | + | + | + | + | + | + | + | [% 'Margepercent' | $T8 %]: | ++ | + [% IF items_sellprice_sum > 0 %] + [%- LxERP.format_amount(100 - (items_lastcost_sum / items_sellprice_sum * 100), 2, 0) %] + [% END %] + | +||||||||||||||
| + | + [% END %] + | + | + | + | + | + | + | + | [% 'Margetotal' | $T8 %]: | +[%- LxERP.format_amount(items_sum_diff, 2, 0) %] | |||||||||||||||
| + | + | [% L.button_tag("kivi.Part.set_assembly_sellprice()", LxERP.t8("Set sellprice")) %] |