Optimized product Grocycode handling on consume page (and others / general) (fixes #2571)

This commit is contained in:
Bernd Bestel
2024-08-24 18:20:40 +02:00
parent 1246f402e5
commit d5dacb1053
8 changed files with 43 additions and 9 deletions

View File

@@ -257,6 +257,10 @@ $("#location_id").on('change', function(e)
}
);
}
else
{
OnLocationChange(locationId, null);
}
}
else
{
@@ -326,7 +330,7 @@ function OnLocationChange(locationId, stockId)
}
);
if (document.getElementById("product_id").getAttribute("barcode") == "null")
if (document.getElementById("product_id").getAttribute("barcode") == "null" || $("#product_id").data("grocycode"))
{
ScanModeSubmit();
}