Merge pull request #1063 from shreesh-webkul/gli-2053
Fixed: Order prices decimal value not shown according to configuration when boking from back office
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user