Split user setting stock_decimal_places_prices into separate settings for input/display (closes #1893)

This commit is contained in:
Bernd Bestel
2022-06-04 14:09:35 +02:00
parent 337ca7d4ba
commit 27582611c1
16 changed files with 59 additions and 34 deletions

View File

@@ -98,7 +98,7 @@ $(".numberpicker.locale-number-input.locale-number-currency").on("blur", functio
if (BoolVal(Grocy.UserSettings.stock_auto_decimal_separator_prices))
{
var value = this.value.toString();
var decimalPlaces = parseInt(Grocy.UserSettings.stock_decimal_places_prices);
var decimalPlaces = parseInt(Grocy.UserSettings.stock_decimal_places_prices_input);
if (value.length <= decimalPlaces)
{