diff --git a/admin-dev/themes/default/template/controllers/products/prices.tpl b/admin-dev/themes/default/template/controllers/products/prices.tpl index f48b609e5..2dce874fb 100644 --- a/admin-dev/themes/default/template/controllers/products/prices.tpl +++ b/admin-dev/themes/default/template/controllers/products/prices.tpl @@ -126,7 +126,7 @@ jQuery(document).ready(Customer.init); - {$currency->prefix}{$currency->suffix} + {$currency->prefix}{$currency->suffix}

{l s='The wholesale price at which you bought this product'}

@@ -134,7 +134,7 @@ jQuery(document).ready(Customer.init); - {$currency->prefix}{$currency->suffix} + {$currency->prefix}{$currency->suffix}

{l s='The pre-tax retail price to sell this product'}

@@ -178,7 +178,7 @@ jQuery(document).ready(Customer.init); - {$currency->prefix}{$currency->suffix} + {$currency->prefix}{$currency->suffix} ({l s='already included in price'}) @@ -193,7 +193,7 @@ jQuery(document).ready(Customer.init); - {$currency->prefix} prefix} {$currency->suffix} {l s='/'} {/literal} {/if} + {assign var='value_text' value=$fields_value[$input.name]} true, 'suffix' => $currency->getSign('right'), 'desc' => $this->l('Range start (included)'), + 'string_format' => '%.2f' ), array( 'type' => 'text', @@ -95,6 +96,7 @@ class AdminRangePriceControllerCore extends AdminController 'required' => true, 'suffix' => $currency->getSign('right'), 'desc' => $this->l('Range end (excluded)'), + 'string_format' => '%.2f' ), ), 'submit' => array( diff --git a/js/price.js b/js/price.js index a87620db5..afedbd288 100644 --- a/js/price.js +++ b/js/price.js @@ -80,7 +80,7 @@ function calcPriceTE() var priceTI = parseFloat(document.getElementById('priceTI').value.replace(/,/g, '.')); var newPrice = ps_round(priceTI - getEcotaxTaxIncluded(), 2) / ((tax / 100) + 1); document.getElementById('priceTE').value = (isNaN(newPrice) == true || newPrice < 0) ? '' : - ps_round(newPrice.toFixed(6), 6); + ps_round(newPrice.toFixed(2), 2); document.getElementById('finalPrice').innerHTML = (isNaN(newPrice) == true || newPrice < 0) ? '' : ps_round(priceTI.toFixed(2), 2); document.getElementById('finalPriceWithoutTax').innerHTML = (isNaN(newPrice) == true || newPrice < 0) ? '' :