X-Git-Url: http://wagnertech.de/git?p=kivitendo-erp.git;a=blobdiff_plain;f=templates%2Fwebpages%2Forder%2Ftabs%2F_item_input.html;fp=templates%2Fwebpages%2Forder%2Ftabs%2F_item_input.html;h=8f75b6f02674840809fcc9c19615d0daf32ad9d8;hp=1b1bf60602430e4d393e7aa447d6c1f28f80328d;hb=b293ff8ad52fc76ba0c44783e3982418114d6b08;hpb=d4925a8b60f04674885e30d9316dc0263f8b9a84 diff --git a/templates/webpages/order/tabs/_item_input.html b/templates/webpages/order/tabs/_item_input.html index 1b1bf6060..8f75b6f02 100644 --- a/templates/webpages/order/tabs/_item_input.html +++ b/templates/webpages/order/tabs/_item_input.html @@ -29,7 +29,6 @@ [%- 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(','), @@ -39,9 +38,12 @@ [% 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") %] + [%- SET price = '' %] + [%- IF SELF.created_part %] + [%- SET price = LxERP.format_amount(((SELF.type == 'sales_quotation' || SELF.type == 'sales_order') ? SELF.created_part.sellprice : SELF.created_part.lastcost), -2) -%] + [%- END %] + [% L.input_tag('add_item.sellprice_as_number', price, size = 10, class="add_item_input numeric tooltipster-html") %] + [% L.input_tag('add_item.discount_as_percent', '', size = 5, class="add_item_input numeric tooltipster-html") %] [% L.button_tag('kivi.Order.add_item()', LxERP.t8('Add part')) %]