mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Fix stock_auto_decimal_separator_prices
input value handling (references #1917)
This commit is contained in:
@@ -110,7 +110,7 @@ $(".numberpicker.locale-number-input.locale-number-currency").on("blur", functio
|
||||
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);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user