mirror of
https://github.com/grocy/grocy.git
synced 2025-10-12 08:34:48 +00:00
Fixed zero decimals handling (fixes #1213)
This commit is contained in:
@@ -140,7 +140,7 @@ $("#only_check_single_unit_in_stock").on("change", function()
|
||||
{
|
||||
if (this.checked)
|
||||
{
|
||||
$("#display_amount").attr("min", "0." + "0".repeat(parseInt(Grocy.UserSettings.stock_decimal_places_amounts) - 1) + "1");
|
||||
$("#display_amount").attr("min", Grocy.DefaultMinAmount);
|
||||
Grocy.Components.ProductAmountPicker.AllowAnyQu(true);
|
||||
Grocy.FrontendHelpers.ValidateForm("recipe-pos-form");
|
||||
}
|
||||
|
Reference in New Issue
Block a user