diff --git a/admin/themes/default/template/controllers/orders/form.tpl b/admin/themes/default/template/controllers/orders/form.tpl index 66ab9c223..3cd980765 100644 --- a/admin/themes/default/template/controllers/orders/form.tpl +++ b/admin/themes/default/template/controllers/orders/form.tpl @@ -1171,7 +1171,7 @@ currency_format = jsonSummary.currency.format; currency_sign = jsonSummary.currency.sign; currency_blank = jsonSummary.currency.blank; - priceDisplayPrecision = jsonSummary.currency.decimals ? 2 : 0; + priceDisplayPrecision = parseInt(jsonSummary.currency.decimals) ? {$smarty.const._PS_PRICE_DISPLAY_PRECISION_|intval} : 0; updateCartProducts(jsonSummary.summary.products, jsonSummary.summary.gift_products, jsonSummary.cart.id_address_delivery); updateCartVouchers(jsonSummary.summary.discounts); diff --git a/js/tools.js b/js/tools.js index f62ce81f2..93486eae3 100644 --- a/js/tools.js +++ b/js/tools.js @@ -53,7 +53,7 @@ function formatNumber(value, numberOfDecimal, thousenSeparator, virgule) if (parseInt(numberOfDecimal) === 0) return abs_val_string; - return abs_val_string + virgule + (deci_string > 0 ? deci_string : '00'); + return abs_val_string + virgule + deci_string; } function formatCurrency(price, currencyFormat, currencySign, currencyBlank)