X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=templates%2Fwebpages%2Forder%2Ftabs%2F_item_input.html;h=1b1bf60602430e4d393e7aa447d6c1f28f80328d;hb=08460123f185fc145d4d87ae150b6b5f051d119a;hp=1d86cf42f45b1a0fdff5c80af7d6a8b1293a3fe5;hpb=0935b012a57196f883b59ec97bb7fe0882210c5a;p=kivitendo-erp.git diff --git a/templates/webpages/order/tabs/_item_input.html b/templates/webpages/order/tabs/_item_input.html index 1d86cf42f..1b1bf6060 100644 --- a/templates/webpages/order/tabs/_item_input.html +++ b/templates/webpages/order/tabs/_item_input.html @@ -1,9 +1,11 @@ -[%- USE T8 %][%- USE HTML %][%- USE LxERP %][%- USE L %] +[%- USE T8 %][%- USE HTML %][%- USE LxERP %][%- USE L %][%- USE P %]
[%- '+' | $T8 %] | +[%- 'position' | $T8 %] | [%- 'Part' | $T8 %] | [%- 'Description' | $T8 %] | [%- 'Qty' | $T8 %] | @@ -14,13 +16,31 @@||||||
---|---|---|---|---|---|---|---|---|---|---|
[% L.part_picker('add_item.parts_id', '', fat_set_item=1, style='width: 300px', class="add_item_input") %] | -[% L.input_tag('add_item.description', '', class="add_item_input") %] | ++ [% SET type_options = [[ 'part', LxERP.t8('Part') ], [ 'assembly', LxERP.t8('Assembly') ], [ 'service', LxERP.t8('Service') ] ] %] + [%- IF INSTANCE_CONF.get_feature_experimental_assortment %] + [%- type_options.push([ 'assortment', LxERP.t8('Assortment')]) %] + [%- END %] + [% L.select_tag('add_item.create_part_type', type_options) %] + [% L.button_tag('kivi.Order.create_part()', LxERP.t8('+')) %] + | +[% 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_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, + multiple_pos_input=1, + action={set_multi_items='kivi.Order.add_multi_items'}, + classification_id=SELF.part_picker_classification_ids.as_list.join(','), + $PARAM_KEY=PARAM_VAL) %] | +[% L.input_tag('add_item.description', SELF.created_part.description, class="add_item_input") %] | [% L.input_tag('add_item.qty_as_number', '', size = 5, class="add_item_input numeric") %] - [% L.hidden_tag('add_item.unit', '', class="add_item_input") %] + [% L.hidden_tag('add_item.unit', SELF.created_part.unit, class="add_item_input") %] | -[% L.input_tag('add_item.sellprice_as_number', '', size = 10, class="add_item_input numeric") %] | + [%- 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.Order.add_item()', LxERP.t8('Add part')) %] |