3 [%- USE LxERP %][%- USE L -%][%- USE P -%]
4 [% PROCESS 'common/select_warehouse_bin.html' %]
5 <h1>[% title %] [% HTML.escape(partnumber) %] [% HTML.escape(description) %]</h1>
7 [% INCLUDE 'common/flash.html' %]
9 <form method="post" name="ic" action="[% script %]">
11 <input name="id" type="hidden" value="[% HTML.escape(id) %]">
12 <input name="item" type="hidden" value="[% HTML.escape(item) %]">
13 <input name="title" type="hidden" value="[% HTML.escape(title) %]">
14 <input name="makemodel" type="hidden" value="[% HTML.escape(makemodel) %]">
15 <input name="onhand" type="hidden" value="[% HTML.escape(onhand) %]">
16 <input name="orphaned" type="hidden" value="[% HTML.escape(orphaned) %]">
17 <input name="taxaccounts" type="hidden" value="[% HTML.escape(taxaccounts) %]">
18 <input name="rowcount" type="hidden" value="[% HTML.escape(rowcount) %]">
19 <input name="eur" type="hidden" value="[% HTML.escape(eur) %]">
20 <input name="original_partnumber" type="hidden" value="[% HTML.escape(original_partnumber) %]">
21 <input name="currow" type="hidden" value="[% HTML.escape(currow) %]">
23 <div id="ic_tabs" class="tabwidget">
25 <li><a href="#master_data">[% 'Basic Data' | $T8 %]</a></li>
26 [% IF LANGUAGES.size %]
27 <li><a href="#translations_tab">[% 'Translations' | $T8 %]</a></li>
30 <li><a href="#sales_price_information">[% 'Price information' | $T8 %]</a></li>
32 [%- IF CUSTOM_VARIABLES.size %]
33 <li><a href="#custom_variables">[% 'Custom Variables' | $T8 %]</a></li>
36 <li><a href="#price_rules">[% 'Price Rules' | $T8 %]</a></li>
40 <div id="master_data">
48 [%- IF image && INSTANCE_CONF.get_parts_show_image %]
49 <a href="[% image | html %]" target="_blank"><img style="[% INSTANCE_CONF.get_parts_image_css %]" src="[% image | html %]"/></a>
57 <th align="right">[% 'Part Number' | $T8 %]</th>
58 <td><input id='partnumber' name="partnumber" value="[% HTML.escape(partnumber) %]" size="40" class="initial_focus"></td>
61 <th align="right">[% 'Part Description' | $T8 %]</th>
63 [%- IF description_area %]
64 <textarea name="description" rows="[% HTML.escape(rows) %]" cols="40" wrap="soft">[% HTML.escape(description) %]</textarea>
66 <input name="description" size="40" value="[% HTML.escape(description) %]">
71 <th align="right">[% 'EAN-Code' | $T8 %]</th>
72 <td><input name="ean" size="40" value="[% HTML.escape(ean) %]"></td>
75 [%- IF all_partsgroup.size %]
76 <th align="right">[% 'Group' | $T8 %]</th>
78 [%- INCLUDE generic/multibox.html
80 DATA = all_partsgroup,
83 label_key = 'partsgroup',
87 <input type="hidden" name="oldpartsgroup" value="[% HTML.escape(oldpartsgroup) %]">
92 [%- IF BUCHUNGSGRUPPEN.size %]
94 <th align="right">[% 'Booking group' | $T8 %]</th>
96 [%- INCLUDE generic/multibox.html
97 name = 'buchungsgruppen_id',
98 DATA = BUCHUNGSGRUPPEN,
100 label_key = 'description',
101 style = 'width:250px'
105 <input type="hidden" name="IC_income" value="[% HTML.escape(IC_income_default) %]">
106 [%- UNLESS is_assembly %]
107 <input type="hidden" name="IC_expense" value="[% HTML.escape(IC_expense_default) %]">
110 <input type="hidden" name="IC" value="[% HTML.escape(IC_default) %]">
113 <th align="right">[% 'Payment Terms' | $T8 %]</th>
115 [%- INCLUDE generic/multibox.html
117 DATA = payment_terms,
120 label_key = 'description',
121 style = 'width:250px'
135 <th align="left">[% 'Part Notes' | $T8 %]</th>
136 <th align="left">[% 'Formula' | $T8 %]</th>
140 [% L.textarea_tag("notes", P.restricted_html(notes), class="texteditor", style="width: 600px; height: 200px") %]
143 <textarea name="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(formel) %]</textarea>
155 <th align="right" nowrap="true">[% 'Updated' | $T8 %]</th>
157 <input name="priceupdate" id="priceupdate" size="11" title="[% HTML.escape(dateformat) %]" value="[% HTML.escape(priceupdate) %]" readonly>
162 <th align="right" nowrap="true">[% 'List Price' | $T8 %]</th>
163 <td><input name="listprice" size="11" value="[% LxERP.format_amount(listprice, 2) %]"></td>
167 <th align="right" nowrap="true">[% 'Sell Price' | $T8 %]</th>
168 <td><input name="sellprice" size="11" value="[% LxERP.format_amount(sellprice, 2) %]"></td>
171 [%- UNLESS is_assembly %]
173 <th align="right" nowrap="true">[% 'Last Cost' | $T8 %]</th>
174 <td><input name="lastcost" size="11" value="[% LxERP.format_amount(lastcost, 2) %]"></td>
178 [%- IF ALL_PRICE_FACTORS.size %]
180 <th align="right">[% 'Price Factor' | $T8 %]</th>
182 [%- INCLUDE generic/multibox.html
183 name = 'price_factor_id',
184 DATA = ALL_PRICE_FACTORS,
187 label_key = 'description',
188 style = 'width:100px'
195 <th align="right" nowrap="true">[% 'Unit' | $T8 %]</th>
197 <input type="hidden" name="unit_changeable" value="[% HTML.escape(unit_changeable) %]">
198 [%- UNLESS unit_changeable %]
199 <input type="hidden" name="unit" value="[% HTML.escape(unit) %]">[% HTML.escape(unit) %]
201 [%- INCLUDE generic/multibox.html
206 style = 'width:100px'
212 [%- UNLESS is_service %]
214 <th align="right" nowrap="true">[% 'Weight' | $T8 %]</th>
216 [%- IF is_assembly %] [% LxERP.format_amount(weight) %][%- END %]
217 <input[% IF is_assembly %] type="hidden"[% END %] size="10" name="weight" value="[% LxERP.format_amount(weight) %]">
218 [% HTML.escape(defaults.weightunit) %]
223 <th align="right" nowrap>[% 'On Hand' | $T8 %]</th>
224 <th align="left" nowrap class="plus[% IF onhand > 0 %]1[% ELSE %]0[% END %]"> [% LxERP.format_amount(onhand) %]</th>
227 <th align="right" nowrap="true">[% 'ROP' | $T8 %]</th>
228 <td><input name="rop" size="10" value="[% LxERP.format_amount(rop) %]"></td>
231 <th align="right" nowrap="true">[% 'Default Warehouse' | $T8 %]</th>
233 <select name="warehouse_id" onchange="warehouse_selected(warehouses[this.selectedIndex]['id'], 0)">
234 [%- FOREACH warehouse = WAREHOUSES %]
235 <option value="[% HTML.escape(warehouse.id) %]"[% IF warehouse_id == warehouse.id %] selected[% END %]>[% warehouse.description %]</option>
241 <th align="right" nowrap="true">[% 'Default Bin' | $T8 %]</th>
242 <td><select id="bin_id" name="bin_id"></select></td>
245 <th align="right" nowrap="true">[% 'Verrechnungseinheit' | $T8 %]</th>
246 <td><input name="ve" size="10" value="[% HTML.escape(ve) %]"></td>
249 <th align="right" nowrap="true">[% 'Business Volume' | $T8 %]</th>
250 <td><input name="gv" size="10" value="[% LxERP.format_amount(gv) %]"></td>
253 <th align="right" nowrap><label for="not_discountable">[% 'Not Discountable' | $T8 %]</label></th>
254 <td><input class="checkbox" type="checkbox" name="not_discountable" id="not_discountable" value="1" [% IF not_discountable %]checked[% END %]></td>
258 <th align="right" nowrap="true"><label for="obsolete">[% 'Obsolete' | $T8 %]</label></th>
259 <td><input name="obsolete" id="obsolete" type="checkbox" class="checkbox" value="1" [% IF obsolete %]checked[% END %]></td>
262 [%- UNLESS is_service %]
264 <th align="right" nowrap><label for="has_sernumber">[% 'Has serial number' | $T8 %]</label></th>
265 <td><input class="checkbox" type="checkbox" name="has_sernumber" id="has_sernumber" value="1" [% IF has_sernumber %]checked[% END %]></td>
269 <th align="right" nowrap><label for="shop">[% 'Shop article' | $T8 %]</label></th>
270 <td><input class="checkbox" type="checkbox" name="shop" id="shop" value="1" [% IF shop %]checked[% END %]></td>
284 <th align="right" nowrap>[% 'Image' | $T8 %]</th>
285 <td><input name="image" size="40" value="[% HTML.escape(image) %]"></td>
286 <th align="right" nowrap>[% 'Microfiche' | $T8 %]</th>
287 <td><input name="microfiche" size="20" value="[% HTML.escape(microfiche) %]"></td>
290 <th align="right" nowrap>[% 'Drawing' | $T8 %]</th>
291 <td><input name="drawing" size="40" value="[% HTML.escape(drawing) %]"></td>