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 [% PROCESS '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="alternate" type="hidden" value="[% HTML.escape(alternate) %]">
16 <input name="onhand" type="hidden" value="[% HTML.escape(onhand) %]">
17 <input name="orphaned" type="hidden" value="[% HTML.escape(orphaned) %]">
18 <input name="taxaccounts" type="hidden" value="[% HTML.escape(taxaccounts) %]">
19 <input name="rowcount" type="hidden" value="[% HTML.escape(rowcount) %]">
20 <input name="eur" type="hidden" value="[% HTML.escape(eur) %]">
21 <input name="original_partnumber" type="hidden" value="[% HTML.escape(original_partnumber) %]">
22 <input name="currow" type="hidden" value="[% HTML.escape(currow) %]">
24 <div id="ic_tabs" class="tabwidget">
26 <li><a href="#master_data">[% 'Basic Data' | $T8 %]</a></li>
27 [% IF LANGUAGES.size %]
28 <li><a href="#translations_tab">[% 'Translations' | $T8 %]</a></li>
31 <li><a href="#sales_price_information">[% 'Price information' | $T8 %]</a></li>
33 [%- IF CUSTOM_VARIABLES.size %]
34 <li><a href="#custom_variables">[% 'Custom Variables' | $T8 %]</a></li>
37 <li><a href="#price_rules">[% 'Price Rules' | $T8 %]</a></li>
41 <div id="master_data">
49 [%- IF image && INSTANCE_CONF.get_parts_show_image %]
50 <a href="[% image | html %]" target="_blank"><img style="[% INSTANCE_CONF.get_parts_image_css %]" src="[% image | html %]"/></a>
58 <th align="right">[% 'Part Number' | $T8 %]</th>
59 <td><input id='partnumber' name="partnumber" value="[% HTML.escape(partnumber) %]" size="40" class="initial_focus"></td>
62 <th align="right">[% 'Part Description' | $T8 %]</th>
64 [%- IF description_area %]
65 <textarea name="description" rows="[% HTML.escape(rows) %]" cols="40" wrap="soft">[% HTML.escape(description) %]</textarea>
67 <input name="description" size="40" value="[% HTML.escape(description) %]">
72 <th align="right">[% 'EAN-Code' | $T8 %]</th>
73 <td><input name="ean" size="40" value="[% HTML.escape(ean) %]"></td>
76 [%- IF all_partsgroup.size %]
77 <th align="right">[% 'Group' | $T8 %]</th>
79 [%- INCLUDE generic/multibox.html
81 DATA = all_partsgroup,
84 label_key = 'partsgroup',
88 <input type="hidden" name="oldpartsgroup" value="[% HTML.escape(oldpartsgroup) %]">
93 [%- IF BUCHUNGSGRUPPEN.size %]
95 <th align="right">[% 'Buchungsgruppe' | $T8 %]</th>
97 [%- INCLUDE generic/multibox.html
98 name = 'buchungsgruppen_id',
99 DATA = BUCHUNGSGRUPPEN,
101 label_key = 'description',
102 style = 'width:250px'
106 <input type="hidden" name="IC_income" value="[% HTML.escape(IC_income_default) %]">
107 [%- UNLESS is_assembly %]
108 <input type="hidden" name="IC_expense" value="[% HTML.escape(IC_expense_default) %]">
111 <input type="hidden" name="IC" value="[% HTML.escape(IC_default) %]">
114 <th align="right">[% 'Payment Terms' | $T8 %]</th>
116 [%- INCLUDE generic/multibox.html
118 DATA = payment_terms,
121 label_key = 'description',
122 style = 'width:250px'
136 <th align="left">[% 'Part Notes' | $T8 %]</th>
137 <th align="left">[% 'Formula' | $T8 %]</th>
141 [% L.textarea_tag("notes", P.restricted_html(notes), class="texteditor", style="width: 600px; height: 200px") %]
145 <layer onmouseover="this.T_STICKY=true;this.T_STATIC=true;return escape('[% '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 %]')">
146 <textarea name="formel" rows="[% HTML.escape(notes_rows) %]" cols="30" wrap="soft">[% HTML.escape(formel) %]</textarea></layer></ilayer>
158 <th align="right" nowrap="true">[% 'Updated' | $T8 %]</th>
160 <input name="priceupdate" id="priceupdate" size="11" title="[% HTML.escape(dateformat) %]" value="[% HTML.escape(priceupdate) %]" readonly>
165 <th align="right" nowrap="true">[% 'List Price' | $T8 %]</th>
166 <td><input name="listprice" size="11" value="[% LxERP.format_amount(listprice, 2) %]"></td>
170 <th align="right" nowrap="true">[% 'Sell Price' | $T8 %]</th>
171 <td><input name="sellprice" size="11" value="[% LxERP.format_amount(sellprice, 2) %]"></td>
174 [%- UNLESS is_assembly %]
176 <th align="right" nowrap="true">[% 'Last Cost' | $T8 %]</th>
177 <td><input name="lastcost" size="11" value="[% LxERP.format_amount(lastcost, 2) %]"></td>
181 [%- IF ALL_PRICE_FACTORS.size %]
183 <th align="right">[% 'Price Factor' | $T8 %]</th>
185 [%- INCLUDE generic/multibox.html
186 name = 'price_factor_id',
187 DATA = ALL_PRICE_FACTORS,
190 label_key = 'description',
191 style = 'width:100px'
198 <th align="right" nowrap="true">[% 'Unit' | $T8 %]</th>
200 <input type="hidden" name="unit_changeable" value="[% HTML.escape(unit_changeable) %]">
201 [%- UNLESS unit_changeable %]
202 <input type="hidden" name="unit" value="[% HTML.escape(unit) %]">[% HTML.escape(unit) %]
204 [%- INCLUDE generic/multibox.html
209 style = 'width:100px'
215 [%- UNLESS is_service %]
217 <th align="right" nowrap="true">[% 'Weight' | $T8 %]</th>
219 [%- IF is_assembly %] [% LxERP.format_amount(weight) %][%- END %]
220 <input[% IF is_assembly %] type="hidden"[% END %] size="10" name="weight" value="[% LxERP.format_amount(weight) %]">
221 [% HTML.escape(defaults.weightunit) %]
226 <th align="right" nowrap>[% 'On Hand' | $T8 %]</th>
227 <th align="left" nowrap class="plus[% IF onhand > 0 %]1[% ELSE %]0[% END %]"> [% LxERP.format_amount(onhand) %]</th>
230 <th align="right" nowrap="true">[% 'ROP' | $T8 %]</th>
231 <td><input name="rop" size="10" value="[% LxERP.format_amount(rop) %]"></td>
234 <th align="right" nowrap="true">[% 'Default Warehouse' | $T8 %]</th>
236 <select name="warehouse_id" onchange="warehouse_selected(warehouses[this.selectedIndex]['id'], 0)">
237 [%- FOREACH warehouse = WAREHOUSES %]
238 <option value="[% HTML.escape(warehouse.id) %]"[% IF warehouse_id == warehouse.id %] selected[% END %]>[% warehouse.description %]</option>
244 <th align="right" nowrap="true">[% 'Default Bin' | $T8 %]</th>
245 <td><select id="bin_id" name="bin_id"></select></td>
248 <th align="right" nowrap="true">[% 'Verrechnungseinheit' | $T8 %]</th>
249 <td><input name="ve" size="10" value="[% HTML.escape(ve) %]"></td>
252 <th align="right" nowrap="true">[% 'Business Volume' | $T8 %]</th>
253 <td><input name="gv" size="10" value="[% LxERP.format_amount(gv) %]"></td>
256 <th align="right" nowrap><label for="not_discountable">[% 'Not Discountable' | $T8 %]</label></th>
257 <td><input class="checkbox" type="checkbox" name="not_discountable" id="not_discountable" value="1" [% IF not_discountable %]checked[% END %]></td>
261 <th align="right" nowrap="true"><label for="obsolete">[% 'Obsolete' | $T8 %]</label></th>
262 <td><input name="obsolete" id="obsolete" type="checkbox" class="checkbox" value="1" [% IF obsolete %]checked[% END %]></td>
265 [%- UNLESS is_service %]
267 <th align="right" nowrap><label for="has_sernumber">[% 'Has serial number' | $T8 %]</label></th>
268 <td><input class="checkbox" type="checkbox" name="has_sernumber" id="has_sernumber" value="1" [% IF has_sernumber %]checked[% END %]></td>
272 <th align="right" nowrap><label for="shop">[% 'Shopartikel' | $T8 %]</label></th>
273 <td><input class="checkbox" type="checkbox" name="shop" id="shop" value="1" [% IF shop %]checked[% END %]></td>
287 <th align="right" nowrap>[% 'Image' | $T8 %]</th>
288 <td><input name="image" size="40" value="[% HTML.escape(image) %]"></td>
289 <th align="right" nowrap>[% 'Microfiche' | $T8 %]</th>
290 <td><input name="microfiche" size="20" value="[% HTML.escape(microfiche) %]"></td>
293 <th align="right" nowrap>[% 'Drawing' | $T8 %]</th>
294 <td><input name="drawing" size="40" value="[% HTML.escape(drawing) %]"></td>