<th align="right"><translate>Group</translate></th>
<td>
[%- INCLUDE generic/multibox.html
- name = 'selectpartsgroup',
+ name = 'partsgroup',
DATA = all_partsgroup,
show_empty = 1,
id_sub = 'pg_keys',
<td>
<ilayer>
<layer onmouseover="this.T_STICKY=true;this.T_STATIC=true;return escape('<translate>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></translate>')">
- <textarea name="formel" rows="4" cols="30" wrap="soft">[% HTML.escape(formel) %]</textarea></layer></ilayer>
+ <textarea name="formel" rows="[% HTML.escape(notes_rows) %]" cols="30" wrap="soft">[% HTML.escape(formel) %]</textarea></layer></ilayer>
</td>
[%- END %]
</tr>
<tr>
<th align="right" nowrap="true"><translate>Updated</translate></th>
<td>
- <input name="priceupdate" id="priceupdate" size="11" title="[% HTML.escape(dateformat) %]" value="[% HTML.escape(priceupdate) %]">
- <input type="button" name="priceupdate" id="trigger1" value="?">
+ <input name="priceupdate" id="priceupdate" size="11" title="[% HTML.escape(dateformat) %]" value="[% HTML.escape(priceupdate) %]" readonly>
</td>
</tr>
<tr>
<th align="right" nowrap="true"><translate>List Price</translate></th>
- <td><input name="listprice" size="11" value="[% LxERP.format_amount(listprice) %]"></td>
+ <td><input name="listprice" size="11" value="[% LxERP.format_amount(listprice, -2) %]"></td>
</tr>
<tr>
<th align="right" nowrap="true"><translate>Sell Price</translate></th>
- <td><input name="sellprice" size="11" value="[% LxERP.format_amount(sellprice) %]"></td>
+ <td><input name="sellprice" size="11" value="[% LxERP.format_amount(sellprice, -2) %]"></td>
</tr>
[%- UNLESS is_assembly %]
<tr>
<th align="right" nowrap="true"><translate>Last Cost</translate></th>
- <td><input name="lastcost" size="11" value="[% LxERP.format_amount(lastcost) %]"></td>
+ <td><input name="lastcost" size="11" value="[% LxERP.format_amount(lastcost, -2) %]"></td>
</tr>
[%- END %]
<th align="right"><translate>Price Factor</translate></th>
<td>
[%- INCLUDE generic/multibox.html
- name = 'price_factors_id',
+ name = 'price_factor_id',
DATA = ALL_PRICE_FACTORS,
show_empty = 1,
id_key = 'id',
<td>
[%- IF is_assembly %] [% LxERP.format_amount(weight) %][%- END %]
<input[% IF is_assembly %] type="hidden"[% END %] size="10" name="weight" value="[% LxERP.format_amount(weight) %]">
+ [% HTML.escape(defaults.weightunit) %]
</td>
</tr>
[%- END %]
<th align="right" nowrap><translate>On Hand</translate></th>
<th align="left" nowrap class="plus[% IF onhand > 0 %]1[% ELSE %]0[% END %]"> [% LxERP.format_amount(onhand) %]</th>
</tr>
- [%- IF is_assembly %]
- <tr>
- <th align="right" nowrap><translate>Stock</translate></th>
- <td><input name="stock" size="10" value="[% LxERP.format_amount(stock) %]"></td>
- </tr>
- [%- END %]
<tr>
<th align="right" nowrap="true"><translate>ROP</translate></th>
<td><input name="rop" size="10" value="[% LxERP.format_amount(rop) %]"></td>