mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
Fix stock_auto_decimal_separator_prices
input value handling (references #1917)
This commit is contained in:
parent
2de87eb446
commit
dbf660f953
@ -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);
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user