mirror of
https://github.com/grocy/grocy.git
synced 2026-03-28 07:39:25 +01: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…
Reference in New Issue
Block a user