[% USE T8 %] [% USE HTML %] [% USE LxERP %] [% USE L %] [% USE P %] [% IF SELF.part.image || SELF.part.description %] [% IF SELF.part.image && INSTANCE_CONF.get_parts_show_image %]
[% END %] [% IF SELF.part.description %]

[% SELF.part.description %] [% IF SELF.part.partnumber %]([% SELF.part.partnumber %])[% END %]

[% END %] [% END %]
[% INCLUDE 'generic/toggle_wrapper.html' %]
[% IF SELF.all_partsgroups.size %] [% END %] [% IF SELF.all_buchungsgruppen.size %] [% END %] [% IF SELF.all_payment_terms.size %] [% END %] [% IF SELF.part.id %] [% END %]
[% 'Basic Article Data' | $T8 %]
[% 'Part Number' | $T8 %] [% L.input_tag("part.partnumber", SELF.part.partnumber, size=10, class='initial_focus wi-mediumsmall', "data-validate"="trimmed_whitespaces") %]
[% 'Part Classification' | $T8 %] [% P.part.select_classification('part.classification_id', default => SELF.part.classification_id, type => SELF.parts_classification_filter, class='wi-wide' ) %]
[% 'Part Description' | $T8 %] [% L.areainput_tag("part.description", SELF.part.description, class='wi-wide', cols=10, rows=10) %]
[% 'EAN-Code' | $T8 %] [% L.input_tag("part.ean", SELF.part.ean, class='wi-wide', size=10, "data-validate"="trimmed_whitespaces") %]
[% 'Partsgroup' | $T8 %] [% L.select_tag('part.partsgroup_id', SELF.all_partsgroups, default=SELF.part.partsgroup_id, title_key='partsgroup', value_key='id', with_empty=1, class='wi-wide') %]
[% 'Booking group' | $T8 %] [% L.select_tag('part.buchungsgruppen_id', SELF.all_buchungsgruppen, default=SELF.part.buchungsgruppen_id, title_key='description', value_key='id', with_empty=0, class='wi-wide') %]
[% 'Payment Terms' | $T8 %] [% L.select_tag('part.payment_id', SELF.all_payment_terms, default=SELF.part.payment_id, title_key='description', value_key='id', with_empty=1, class='wi-wide') %]
[% L.checkbox_tag('part.obsolete', checked = SELF.part.obsolete, for_submit=1) %]
[% L.checkbox_tag('part.shop', checked = SELF.part.shop, for_submit=1, id='part_shop') %]
[% 'Part Notes' | $T8 %]
[% L.textarea_tag("part.notes", P.restricted_html(SELF.part.notes), class='texteditor wi-mediumsmall-wide', cols=10, rows=10) %]
[% UNLESS SELF.part.is_assembly %] [% END %]
[% 'Prices' | $T8 %]
[% 'Price updated' | $T8 %] [% SELF.part.last_price_update.valid_from.to_kivitendo | html %]
[% 'List Price' | $T8 %] [% L.input_tag("part.listprice_as_number", SELF.part.listprice_as_number, class='reformat_number numeric wi-mediumsmall', size=10) %]
[% 'Sell Price' | $T8 %] [% L.input_tag("part.sellprice_as_number", SELF.part.sellprice_as_number, class='reformat_number numeric wi-mediumsmall', size=10) %] [% IF (SELF.part.is_assortment or SELF.part.is_assembly) %] ([% LxERP.format_amount(SELF.part.items_sellprice_sum, 2) %]) [% END %]
[% 'Last Cost' | $T8 %] [% L.input_tag("part.lastcost_as_number", SELF.part.lastcost_as_number, class='reformat_number numeric wi-mediumsmall', size=10) %] [% IF SELF.part.is_assortment %] ([% LxERP.format_amount(SELF.part.items_lastcost_sum, 2) %]) [% END %]
[% PROCESS 'part/_pricegroup_prices.html' %]
[% IF SELF.all_price_factors.size %] [% END %]
[% 'Price Factor' | $T8 %] [% L.select_tag('part.price_factor_id', SELF.all_price_factors, default=SELF.part.price_factor_id, title_key='description', value_key='id', with_empty=1, class='wi-mediumsmall') %]
[% L.checkbox_tag('part.not_discountable', checked = SELF.part.not_discountable, for_submit=1) %]
[% 'Business Volume' | $T8 %] [% L.input_tag("part.gv_as_number", SELF.part.gv_as_number, class='reformat_number numeric wi-mediumsmall', size=10) %]
[% 'Verrechnungseinheit' | $T8 %] [% L.input_tag("part.ve", SELF.part.ve, class='wi-mediumsmall', size=10) %]
[% 'Unit' | $T8 %]
[% 'Unit' | $T8 %] [% IF !SELF.part.id or SELF.part.orphaned # same logic as unit_changable %] [% L.select_tag('part.unit', SELF.all_units, default=SELF.part.unit, title_key='name', value_key='name', class='wi-mediumsmall') %] [% ELSE %] [% L.hidden_tag('part.unit', SELF.part.unit) %] [% HTML.escape(SELF.part.unit) %] [% END %]
[% UNLESS SELF.part.is_service %] [% IF SELF.all_warehouses.size %] [% END %]
[% 'Warehouse' | $T8 %]
[% 'Weight' | $T8 %] [% IF SELF.part.is_assembly %] [% LxERP.format_amount(SELF.part.weight) %] [% ELSE %] [% L.input_tag('part.weight_as_number', SELF.part.weight_as_number, size=10, class='wi-small reformat_number numeric', size=10) %] [% END %] [% HTML.escape(INSTANCE_CONF.get_weightunit) %]
[% 'On Hand' | $T8 %] [% LxERP.format_amount(SELF.part.onhand) %] [% SELF.part.unit | html %]
[% 'ROP' | $T8 %] [% L.input_tag("part.rop_as_number", SELF.part.rop_as_number, size=10, class='wi-small reformat_number numeric') %]
[% 'Default Warehouse' | $T8 %] [% L.select_tag('part.warehouse_id', SELF.all_warehouses, default=SELF.part.warehouse.id, title_key='description', with_empty=1, class='wi-lightwide') %]
[% 'Default Bin' | $T8 %] [% IF SELF.part.warehouse.id %] [% L.select_tag('part.bin_id', SELF.part.warehouse.bins, default=SELF.part.bin.id, title_key='description', with_empty=0, class='wi-lightwide') %] [% END %]
[% L.checkbox_tag('part.has_sernumber', checked = SELF.part.has_sernumber, for_submit=1) %]
[% END #/UNLESS SELF.part.is_service %]
[% 'Formula' | $T8 %]
[% 'Illustrations' | $T8 %]
[% 'Image' | $T8 %] [% L.input_tag("part.image", SELF.part.image, class='wi-lightwide', size=10, "data-validate"="trimmed_whitespaces") %]
[% 'Microfiche' | $T8 %] [% L.input_tag("part.microfiche", SELF.part.microfiche, class='wi-lightwide', size=10, "data-validate"="trimmed_whitespaces") %]
[% 'Drawing' | $T8 %] [% L.input_tag("part.drawing", SELF.part.drawing, class='wi-lightwide', size=10, "data-validate"="trimmed_whitespaces") %]
[% IF CUSTOM_VARIABLES_FIRST_TAB %] [%- FOREACH var = CUSTOM_VARIABLES_FIRST_TAB %] [%- END %] [% END %]
[% 'Custom Variables' | $T8 %]
[% 'Unchecked custom variables will not appear in orders and invoices.' | $T8 %]
[% var.VALID_BOX %] [%- IF !var.partsgroup_filtered %] [% HTML.escape(var.description) %] [%- END %]
[% var.HTML_CODE %]
[% PROCESS 'part/_customerprices.html' %]
[% UNLESS SELF.part.is_assembly %]
[% PROCESS 'part/_makemodel.html' %]
[% END %]