Fixed that consuming partially fulfilled recipes was possible (fixes #1981)

This commit is contained in:
Bernd Bestel
2022-08-27 00:08:23 +02:00
parent c0d0b8fc90
commit f1bc2cc40f
3 changed files with 15 additions and 6 deletions

View File

@@ -493,8 +493,6 @@ class StockService extends BaseService
}
}
$this->CompactStockEntries($productId);
if (boolval($this->getUsersService()->GetUserSetting(GROCY_USER_ID, 'shopping_list_auto_add_below_min_stock_amount')))
{
$this->AddMissingProductsToShoppingList(intval($this->getUsersService()->GetUserSetting(GROCY_USER_ID, 'shopping_list_auto_add_below_min_stock_amount_list_id')));