X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fdelivery_order%2Ftabs%2F_item_input.html;fp=templates%2Fwebpages%2Fdelivery_order%2Ftabs%2F_item_input.html;h=ab62bd9259d791b2e86018d73cdbf87e8093085a;hb=ec440a833155673f0ca453a8ed3079dd78a54fab;hp=255d4f89d242f7e1f459ae8076bacb0035e2ed07;hpb=9103645c7ebcc220d06cd2fa794895ae99dcbf2f;p=kivitendo-erp.git diff --git a/templates/webpages/delivery_order/tabs/_item_input.html b/templates/webpages/delivery_order/tabs/_item_input.html index 255d4f89d..ab62bd925 100644 --- a/templates/webpages/delivery_order/tabs/_item_input.html +++ b/templates/webpages/delivery_order/tabs/_item_input.html @@ -9,15 +9,13 @@ [%- 'Part' | $T8 %] [%- 'Description' | $T8 %] [%- 'Qty' | $T8 %] - [%- 'Price' | $T8 %] - [%- 'Discount' | $T8 %] - [% SET type_options = [[ 'part', LxERP.t8('Part') ], [ 'assembly', LxERP.t8('Assembly') ], [ 'service', LxERP.t8('Service') ] ] %] + [% SET type_options = [[ 'part', LxERP.t8('Part') ], [ 'assembly', LxERP.t8('Assembly') ]] %] [%- IF INSTANCE_CONF.get_feature_experimental_assortment %] [%- type_options.push([ 'assortment', LxERP.t8('Assortment')]) %] [%- END %] @@ -26,7 +24,7 @@ [% L.input_tag('add_item.position', '', size = 5, class="add_item_input numeric") %] - [%- SET PARAM_KEY = SELF.cv == "customer" ? 'with_customer_partnumber' : 'with_makemodel' -%] + [%- SET PARAM_KEY = SELF.type_data.properties('is_customer') ? 'with_customer_partnumber' : 'with_makemodel' -%] [%- SET PARAM_VAL = SELF.search_cvpartnumber -%] [% P.part.picker('add_item.parts_id', SELF.created_part, style='width: 300px', class="add_item_input", fat_set_item=1, @@ -39,9 +37,6 @@ [% L.input_tag('add_item.qty_as_number', '', size = 5, class="add_item_input numeric") %] [% L.hidden_tag('add_item.unit', SELF.created_part.unit, class="add_item_input") %] - [%- SET price = LxERP.format_amount(((SELF.type == 'sales_quotation' || SELF.type == 'sales_order') ? SELF.created_part.sellprice : SELF.created_part.lastcost), -2) -%] - [% L.input_tag('add_item.sellprice_as_number', price, size = 10, class="add_item_input numeric") %] - [% L.input_tag('add_item.discount_as_percent', '', size = 5, class="add_item_input numeric") %] [% L.button_tag('kivi.DeliveryOrder.add_item()', LxERP.t8('Add part')) %]