Fixed productamountpicker initial converted amount was undefined

This commit is contained in:
Bernd Bestel
2020-11-12 22:47:00 +01:00
parent 1056252117
commit fa3a4ed688
7 changed files with 22 additions and 0 deletions

View File

@@ -178,6 +178,7 @@ if (GetUriParam("list") !== undefined)
if (GetUriParam("amount") !== undefined)
{
$("#display_amount").val(parseFloat(GetUriParam("amount")).toLocaleString({ minimumFractionDigits: 0, maximumFractionDigits: Grocy.UserSettings.stock_decimal_places_amounts }));
$(".input-group-productamountpicker").trigger("change");
Grocy.FrontendHelpers.ValidateForm('shoppinglist-form');
}