Fix stock_auto_decimal_separator_prices input value handling (references #1917)

This commit is contained in:
Bernd Bestel
2022-06-11 13:51:19 +02:00
parent 2de87eb446
commit dbf660f953

View File

@@ -110,7 +110,7 @@ $(".numberpicker.locale-number-input.locale-number-currency").on("blur", functio
value = value.padStart(decimalPlaces, "0"); value = value.padStart(decimalPlaces, "0");
} }
var valueNew = parseFloat(value.substring(0, value.length - decimalPlaces) + '.' + value.slice(decimalPlaces * -1)).toLocaleString(undefined, { minimumFractionDigits: decimalPlaces, maximumFractionDigits: decimalPlaces }); var valueNew = parseFloat(value.substring(0, value.length - decimalPlaces) + '.' + value.slice(decimalPlaces * -1));
$(this).val(valueNew); $(this).val(valueNew);
} }
}); });