X-Git-Url: http://wagnertech.de/git?p=kivitendo-erp.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;hp=0000000000000000000000000000000000000000;hb=53593baa211863fbf66540cf1bcc36c8fb37257f;hpb=deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44 diff --git a/templates/webpages/delivery_order/tabs/_item_input.html b/templates/webpages/delivery_order/tabs/_item_input.html new file mode 100644 index 000000000..ab62bd925 --- /dev/null +++ b/templates/webpages/delivery_order/tabs/_item_input.html @@ -0,0 +1,44 @@ +[%- USE T8 %][%- USE HTML %][%- USE LxERP %][%- USE L %][%- USE P %] + +
+ + + + + + + + + + + + + + + + + + + + + +
[%- '+' | $T8 %] [%- 'position' | $T8 %] [%- 'Part' | $T8 %] [%- 'Description' | $T8 %] [%- 'Qty' | $T8 %]
+ [% 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 %] + [% L.select_tag('add_item.create_part_type', type_options) %] + [% L.button_tag('kivi.DeliveryOrder.create_part()', LxERP.t8('+')) %] + [% L.input_tag('add_item.position', '', size = 5, class="add_item_input numeric") %] + [%- 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, + multiple_pos_input=1, + action={set_multi_items='kivi.DeliveryOrder.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', SELF.created_part.unit, class="add_item_input") %] + [% L.button_tag('kivi.DeliveryOrder.add_item()', LxERP.t8('Add part')) %]
+