[% 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 %][% '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") %] |
[% 'Tariff Code' | $T8 %] | [% L.input_tag("part.tariff_code", SELF.part.tariff_code, 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.order_locked', checked = SELF.part.order_locked, for_submit=1) %] | |
[% 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') %] |
[% L.textarea_tag("part.notes", P.restricted_html(SELF.part.notes), class='texteditor wi-mediumsmall-wide', cols=10, rows=10) %] |
[% 'Price updated' | $T8 %] | [% SELF.part.last_price_update.valid_from.to_kivitendo | html %] |
---|---|
[% 'List Price' | $T8 %] | [% IF (AUTH.assert('part_service_assembly_edit_prices', 'may_fail')) %] [% L.input_tag("part.listprice_as_number", SELF.part.listprice_as_number, class='reformat_number numeric wi-mediumsmall', size=10) %] [% ELSE %] [% SELF.part.listprice_as_number %] [% END %] |
[% 'Sell Price' | $T8 %] | [% IF (AUTH.assert('part_service_assembly_edit_prices', 'may_fail')) %] [% L.input_tag("part.sellprice_as_number", SELF.part.sellprice_as_number, class='reformat_number numeric wi-mediumsmall', size=10) %] [% ELSE %] [% SELF.part.sellprice_as_number %] [% END %] [% IF (SELF.part.is_assortment or SELF.part.is_assembly) %] ([% LxERP.format_amount(SELF.part.items_sellprice_sum, 2) %]) [% END %] |
[% 'Last Cost' | $T8 %] | [%- UNLESS SELF.part.is_assembly %] [% IF (AUTH.assert('part_service_assembly_edit_prices', 'may_fail')) %] [% L.input_tag("part.lastcost_as_number", SELF.part.lastcost_as_number, class='reformat_number numeric wi-mediumsmall', size=10) %] [% ELSE %] [% SELF.part.lastcost_as_number %] [% END %] [% END %] [% IF SELF.part.is_assortment || SELF.part.is_assembly %] ([% LxERP.format_amount(SELF.part.items_lastcost_sum, 2) %]) [% 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 %] | [% 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 %] |
---|
[% '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') %] |
[% 'Order Size' | $T8 %] | [% L.input_tag("part.order_qty_as_number", SELF.part.order_qty_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_sorted_naturally, 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) %] |
[% '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") %] |
[% 'Description' | $T8 %] | [% 'Value' | $T8 %] | |
---|---|---|
[% var.VALID_BOX %] | [%- IF !var.partsgroup_filtered %] [% HTML.escape(var.description) %] [%- END %] | [% var.HTML_CODE %] |
[% 'Note' | $T8 %]: [% 'Unchecked custom variables will not appear in orders and invoices.' | $T8 %]