6 <table width="100%" id="basic_data_table">
9 <table width="100%" id="ic1">
12 [%- IF SELF.part.image && INSTANCE_CONF.get_parts_show_image %]
13 <a href="[% SELF.part.image | html %]" target="_blank"><img style="[% INSTANCE_CONF.get_parts_image_css %]" src="[% SELF.part.image | html %]"/></a>
21 <th align="right">[% 'Part Number' | $T8 %]</th>
22 [% SET readonly = 1 %]
23 [% UNLESS SELF.part.id %][% readonly = 0 %][% END %]
24 <td>[% L.input_tag("part.partnumber", SELF.part.partnumber, size=40, readonly=readonly class="initial_focus") %]</td>
27 <th align="right">[% 'Part Classification' | $T8 %]</th>
28 <td>[% P.select_classification('part.classification_id', default => SELF.part.classification_id) %]</td>
31 <th align="right">[% 'Part Description' | $T8 %]</th>
33 [%- IF description_area %]
34 <textarea name="description" rows="[% HTML.escape(rows) %]" cols="40" wrap="soft">[% HTML.escape(description) %]</textarea>
36 [% L.input_tag("part.description", SELF.part.description, size=40) %]</td>
41 <th align="right">[% 'EAN-Code' | $T8 %]</th>
42 <td>[% L.input_tag("part.ean", SELF.part.ean, size=40) %]</td>
45 [%- IF SELF.all_partsgroups.size %]
46 <th align="right">[% 'Partsgroup' | $T8 %]</th>
47 <td>[%- L.select_tag('part.partsgroup_id', SELF.all_partsgroups, default=SELF.part.partsgroup_id, title_key='partsgroup', value_key='id', with_empty=1 style='width: 200px') %]</td>
50 [%- IF SELF.all_buchungsgruppen.size %]
52 <th align="right">[% 'Booking group' | $T8 %]</th>
53 <td>[%- L.select_tag('part.buchungsgruppen_id', SELF.all_buchungsgruppen, default=SELF.part.buchungsgruppen_id, title_key='description', value_key='id', with_empty=0 style='width: 200px') %]</td>
56 [%- IF SELF.all_payment_terms.size %]
58 <th align="right">[% 'Payment Terms' | $T8 %]</th>
60 [%- L.select_tag('part.payment_id', SELF.all_payment_terms, default=SELF.part.payment_id, title_key='description', value_key='id', with_empty=1 style='width: 200px') %]</td>
73 <th align="left">[% 'Part Notes' | $T8 %]</th>
74 <th align="left">[% 'Formula' | $T8 %]</th>
78 [% L.textarea_tag("part.notes", P.restricted_html(SELF.part.notes), class="texteditor", style="width: 600px; height: 200px") %]
81 <textarea id="part.formel" name="part.formel" rows="[% HTML.escape(notes_rows) %]" cols="30" wrap="soft" class="tooltipster-html" title="[% 'The formula needs the following syntax:<br>For regular article:<br>Variablename= Variable Unit;<br>Variablename2= Variable2 Unit2;<br>...<br>###<br>Variable + ( Variable2 / Variable )<br><b>Please be beware of the spaces in the formula</b><br>' | $T8 %]">[% HTML.escape(SELF.part.formel) %]</textarea>
93 <th align="right" nowrap="true">[% 'Updated' | $T8 %]</th>
95 [% SELF.part.priceupdate.to_kivitendo | html %]
100 <th align="right" nowrap="true">[% 'List Price' | $T8 %]</th>
101 <td>[% L.input_tag("part.listprice_as_number", SELF.part.listprice_as_number, size=11 class='reformat_number numeric') %]</td>
105 <th align="right" nowrap="true">[% 'Sell Price' | $T8 %]</th>
106 <td>[% L.input_tag("part.sellprice_as_number", SELF.part.sellprice_as_number, size=11, class='reformat_number numeric') %] [% IF (SELF.part.is_assortment or SELF.part.is_assembly) %] (<span id="items_sellprice_sum_basic">[% LxERP.format_amount(SELF.part.items_sellprice_sum, 2) %]</span>) [% END %]</td>
109 [%- UNLESS SELF.part.is_assembly %]
111 <th align="right" nowrap="true">[% 'Last Cost' | $T8 %]</th>
112 <td>[% L.input_tag("part.lastcost_as_number", SELF.part.lastcost_as_number, size=11 class='reformat_number numeric') %]
113 [% IF SELF.part.is_assortment %] (<span id="items_lastcost_sum_basic">[% LxERP.format_amount(SELF.part.items_lastcost_sum, 2) %]</span>) [% END %]</td>
117 [%- IF SELF.all_price_factors.size %]
119 <th align="right">[% 'Price Factor' | $T8 %]</th>
121 [%- 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) %]</td>
127 <th align="right" nowrap="true">[% 'Unit' | $T8 %]</th>
129 [%- IF !SELF.part.id or SELF.part.orphaned # same logic as unit_changable %]
130 [%- L.select_tag('part.unit', SELF.all_units, default=SELF.part.unit, title_key='name', value_key='name') %]</td>
132 [% L.hidden_tag('part.unit', SELF.part.unit) %] [% HTML.escape(SELF.part.unit) %]
137 [%- UNLESS SELF.part.is_service %]
139 <th align="right" nowrap="true">[% 'Weight' | $T8 %]</th>
141 [%- IF SELF.part.is_assembly %]
142 [% LxERP.format_amount(SELF.part.weight) %]
144 [% L.input_tag('part.weight_as_number', SELF.part.weight_as_number, size=10, class='reformat_number numeric') %]
146 [% HTML.escape(INSTANCE_CONF.get_weightunit) %]
150 <th align="right" nowrap>[% 'On Hand' | $T8 %]</th>
151 <th align="left" nowrap>[% LxERP.format_amount(SELF.part.onhand) %] [% SELF.part.unit | html %]</th>
154 <th align="right" nowrap="true">[% 'ROP' | $T8 %]</th>
155 <td>[% L.input_tag("part.rop_as_number", SELF.part.rop_as_number, size=10, class="reformat_number numeric") %]</td>
157 [% IF SELF.all_warehouses.size %]
159 <th align="right" nowrap="true">[% 'Default Warehouse' | $T8 %]</th>
160 <td>[% L.select_tag('part.warehouse_id', SELF.all_warehouses, default=SELF.part.warehouse.id, title_key='description', with_empty=>1) %]
165 <th align="right" nowrap="true">[% 'Default Bin' | $T8 %]</th>
168 [% IF SELF.part.warehouse.id %]
169 [% L.select_tag('part.bin_id', SELF.part.warehouse.bins, default=SELF.part.bin.id, title_key='description') %]
176 <th align="right" nowrap="true">[% 'Verrechnungseinheit' | $T8 %]</th>
177 <td>[% L.input_tag("part.ve", SELF.part.ve, size=10) %]</td>
180 <th align="right" nowrap="true">[% 'Business Volume' | $T8 %]</th>
181 <td>[% L.input_tag("part.gv_as_number", SELF.part.gv_as_number, size=10, class='reformat_number numeric') %]</td>
184 <th align="right" nowrap><label for="not_discountable">[% 'Not Discountable' | $T8 %]</label></th>
185 <td>[% L.checkbox_tag('part.not_discountable', checked = SELF.part.not_discountable, for_submit=1) %]</td>
187 [%- IF SELF.part.id %]
189 <th align="right" nowrap="true"><label for="obsolete">[% 'Obsolete' | $T8 %]</label></th>
190 <td>[% L.checkbox_tag('part.obsolete', checked = SELF.part.obsolete, for_submit=1) %]</td>
193 [%- UNLESS SELF.part.is_service %]
195 <th align="right" nowrap><label for="has_sernumber">[% 'Has serial number' | $T8 %]</label></th>
196 <td>[% L.checkbox_tag('part.has_sernumber', checked = SELF.part.has_sernumber, for_submit=1) %]</td>
200 <th align="right" nowrap><label for="shop">[% 'Shop article' | $T8 %]</label></th>
201 <td>[% L.checkbox_tag('part.shop', checked = SELF.part.shop, for_submit=1) %]</td>
215 <th align="right" nowrap>[% 'Image' | $T8 %]</th>
216 <td>[% L.input_tag("part.image", SELF.part.image, size=40) %]</td>
217 <th align="right" nowrap>[% 'Microfiche' | $T8 %]</th>
218 <td>[% L.input_tag("part.microfiche", SELF.part.microfiche, size=20) %]</td>
221 <th align="right" nowrap>[% 'Drawing' | $T8 %]</th>
222 <td>[% L.input_tag("part.drawing", SELF.part.drawing, size=40) %]</td>
228 <div id="pricegroups">
229 [% PROCESS 'part/_pricegroup_prices.html' %]
232 [%- UNLESS SELF.part.is_assembly %]
234 [% PROCESS 'part/_makemodel.html' %]
239 <td><hr size="3" noshade></td>