// Fix unit price calculation and display in BO
This commit is contained in:
@@ -205,12 +205,12 @@ jQuery(document).ready(Customer.init);
|
||||
<tr id="tr_unit_price">
|
||||
<td class="col-left"><label>{l s='Unit price:'}</label></td>
|
||||
<td style="padding-bottom:5px;">
|
||||
{$currency->prefix} <input size="11" maxlength="14" id="unit_price" name="unit_price" type="text" value="{$product->unit_price}"
|
||||
{$currency->prefix} <input size="11" maxlength="14" id="unit_price" name="unit_price" type="text" value="{$unit_price}"
|
||||
onkeyup="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.'); unitPriceWithTax('unit');"/>{$currency->suffix}
|
||||
{l s='/'} <!--<input size="6" maxlength="10" id="unity" name="unity" type="text" value="{$product->unity|htmlentitiesUTF8}" onkeyup="if (isArrowKey(event)) return ;unitySecond();" onchange="unitySecond();"/> -->
|
||||
<select onchange="unitySecond();" name="unity" id="unity">
|
||||
{foreach $unities as $unity}
|
||||
<option value="{$unity}">{$unity}</option>
|
||||
<option value="{$unity}" {if $unity == $product->unity} selected="selected"{/if}>{$unity}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
{if $ps_tax && $country_display_tax_label}
|
||||
|
||||
Reference in New Issue
Block a user