X-Git-Url: http://wagnertech.de/git?p=kivitendo-erp.git;a=blobdiff_plain;f=templates%2Fwebpages%2Fpart%2F_assortment_row.html;fp=templates%2Fwebpages%2Fpart%2F_assortment_row.html;h=6edd9bb75605ea9113c81428fd514357959e146c;hp=0000000000000000000000000000000000000000;hb=53593baa211863fbf66540cf1bcc36c8fb37257f;hpb=deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44 diff --git a/templates/webpages/part/_assortment_row.html b/templates/webpages/part/_assortment_row.html new file mode 100644 index 000000000..6edd9bb75 --- /dev/null +++ b/templates/webpages/part/_assortment_row.html @@ -0,0 +1,71 @@ +[%- USE T8 %] +[%- USE HTML %] +[%- USE LxERP %] +[%- USE L %] +[%- USE P %] + + + [% IF orphaned || AUTH.assert('assortment_edit', 1) %] + [% L.hidden_tag("assortment_items[+].parts_id", ITEM.part.id) %] + [% END %] + + + [%- L.button_tag("kivi.Part.delete_item_row(this)", + LxERP.t8("X")) %] [% # , confirm=LxERP.t8("Are you sure?")) %] + + +
+ [% HTML.escape(position) or HTML.escape(ITEM.position) %] +
+ + + [%- LxERP.t8('reorder item') %] + + + [% ITEM.part.presenter.part %] + + + [% HTML.escape(ITEM.part.description) %] + + + [% IF orphaned || AUTH.assert('assortment_edit', 1) %] + [%- L.input_tag("assortment_items[].qty_as_number", + ITEM.qty_as_number, + size = 10, + class="recalc reformat_number numeric") %] + [% ELSE %] + [% ITEM.qty_as_number | html %] + [% END %] + + + [% IF orphaned || AUTH.assert('assortment_edit', 1) %] + [%- L.select_tag("assortment_items[].unit", + ITEM.part.available_units, + default = ITEM.part.unit, + title_key = 'name', + value_key = 'name', + class = 'unitselect') %] + [% ELSE %] + [% ITEM.part.unit | html %] + [% END %] + + + [% IF orphaned || AUTH.assert('assortment_edit', 1) %] + [% L.checkbox_tag('assortment_items[].charge', checked => ITEM.charge, class => 'checkbox', for_submit=1) %] + [% ELSE %] + [% IF ITEM.charge %][% 'Yes' | $T8 %][%- ELSE %][% 'No' | $T8 %][%- END %] + [% END %] + + + [%- L.div_tag(LxERP.format_amount(ITEM.linetotal_sellprice, 2, 0), name="linetotal") %] + + + [% ITEM.part.sellprice_as_number %] + + + [% ITEM.part.lastcost_as_number %] + + + [% HTML.escape(ITEM.part.partsgroup.partsgroup) %] + +