Filter stock on warehouse status for replenishment

Do not show stock of closed warehouse
This commit is contained in:
fappels 2016-12-05 18:14:42 +01:00
parent 0aacb7ce17
commit 3ca9664595

View File

@ -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))