diff --git a/services/StockService.php b/services/StockService.php index 9e75e49b..731e5c78 100644 --- a/services/StockService.php +++ b/services/StockService.php @@ -1075,6 +1075,11 @@ class StockService extends BaseService } } + 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'))); + } + return $transactionId; }