X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/5be160844da9f03e9b95fec066418a99832d8cca..HEAD:/templates/webpages/delivery_order/tabs/_row.html diff --git a/templates/webpages/delivery_order/tabs/_row.html b/templates/webpages/delivery_order/tabs/_row.html index c93d18c6c..82422ef16 100644 --- a/templates/webpages/delivery_order/tabs/_row.html +++ b/templates/webpages/delivery_order/tabs/_row.html @@ -17,6 +17,7 @@ [% L.hidden_tag("orderitem_ids[+]", ID) %] [% L.hidden_tag("converted_from_orderitems_ids[+]", ITEM.converted_from_orderitems_id) %] [% L.hidden_tag("order.orderitems[+].id", ITEM.id, id='item_' _ ID) %] + [% L.hidden_tag("order.orderitems[].stock_info", ITEM.stock_info, class="data-stock-info") %] [% L.hidden_tag("order.orderitems[].parts_id", ITEM.parts_id) %] @@ -77,13 +78,6 @@ [%- L.hidden_tag("formula[+]", ITEM.part.formel) -%] [%- END -%] - - [%- L.select_tag("order.orderitems[].price_factor_id", - SELF.all_price_factors, - default = ITEM.price_factor_id, - title_key = 'description', - with_empty = 1) %] - [%- L.select_tag("order.orderitems[].unit", ITEM.part.available_units, @@ -92,49 +86,11 @@ value_key = 'name', class = 'unitselect') %] - [% SET RIGHT_TO_EDIT_PRICES = 0 %] - [% IF (SELF.type == "sales_order" || SELF.type == "sales_quotation") %] - [% SET RIGHT_TO_EDIT_PRICES = AUTH.assert('sales_edit_prices', 1) %] - [% END %] - [% IF (SELF.type == "purchase_order" || SELF.type == "request_quotation") %] - [% SET RIGHT_TO_EDIT_PRICES = AUTH.assert('purchase_edit_prices', 1) %] - [% END %] - - [%- SET EDIT_PRICE = (RIGHT_TO_EDIT_PRICES) %] -
- [%- L.input_tag("order.orderitems[].sellprice_as_number", - ITEM.sellprice_as_number, - size = 10, - disabled=(EDIT_PRICE? '' : 1), - class="reformat_number numeric") %] -
-
- [%- L.div_tag(ITEM.sellprice_as_number, name="sellprice_text", class="numeric") %] - [%- L.hidden_tag("order.orderitems[].sellprice_as_number", - ITEM.sellprice_as_number, - disabled=(EDIT_PRICE? 1 : '')) %] -
- + - [%- SET EDIT_DISCOUNT = (RIGHT_TO_EDIT_PRICES) %] -
- [%- L.input_tag("order.orderitems[].discount_as_percent", - ITEM.discount_as_percent, - size = 5, - disabled=(EDIT_DISCOUNT? '' : 1), - class="reformat_number numeric") %] -
-
- [%- L.div_tag(ITEM.discount_as_percent, name="discount_text", class="numeric") %] - [%- L.hidden_tag("order.orderitems[].discount_as_percent", - ITEM.discount_as_percent, - disabled=(EDIT_DISCOUNT? 1 : '')) %] -
+ [% SELF.calculate_stock_in_out(ITEM) %] [% ITEM.unit %] + [% P.button_tag("kivi.DeliveryOrder.open_stock_in_out_dialog(this, '" _ in_out _"')", "?") %] - - [%- L.div_tag(LxERP.format_amount(ITEM.linetotal, 2, 0), name="linetotal") %] - -