mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Only cascade changes of stock QU to recipe ingredients which uses the same QU (references #177)
This commit is contained in:
@@ -52,7 +52,7 @@ Grocy.Components.ProductPicker.GetPicker().on('change', function(e)
|
||||
function(productDetails)
|
||||
{
|
||||
Grocy.RecipePosFormProductChangeCount++;
|
||||
console.log(Grocy.RecipePosFormProductChangeCount);
|
||||
|
||||
if (Grocy.RecipePosFormProductChangeCount < 3) // This triggers twice on inital page load, however
|
||||
{
|
||||
Grocy.Components.ProductAmountPicker.Reload(productDetails.product.id, productDetails.quantity_unit_stock.id, true);
|
||||
|
Reference in New Issue
Block a user