From 3ca966459510abd7e05299ec3bc38e37dfbd72cd Mon Sep 17 00:00:00 2001 From: fappels <francis.appels@yahoo.com> Date: Mon, 5 Dec 2016 18:14:42 +0100 Subject: [PATCH] Filter stock on warehouse status for replenishment Do not show stock of closed warehouse --- htdocs/product/stock/replenish.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/product/stock/replenish.php b/htdocs/product/stock/replenish.php index 5281d913d95..25232c3bf52 100644 --- a/htdocs/product/stock/replenish.php +++ b/htdocs/product/stock/replenish.php @@ -552,7 +552,7 @@ while ($i < ($limit ? min($num, $limit) : $num)) if (! empty($conf->global->STOCK_SUPPORTS_SERVICES) || $objp->fk_product_type == 0) { $prod->fetch($objp->rowid); - $prod->load_stock(); + $prod->load_stock('warehouseopen, warehouseinternal'); // Multilangs if (! empty($conf->global->MAIN_MULTILANGS)) -- GitLab