[-] BO: Fix some bugs on advanced stock management
This commit is contained in:
1 parent
399526e451
commit
10d148782a
6 files changed
+81
-75
No files matched your search
@@ -132,4 +132,9 @@ class WarehouseProductLocationCore extends ObjectModel
|
||||
$collection->where('id_product', '=', (int)$id_product);
|
||||
return $collection;
|
||||
}
|
||||
|
||||
public static function getProducts($id_warehouse)
|
||||
{
|
||||
return Db::getInstance()->executeS('SELECT DISTINCT id_product FROM '._DB_PREFIX_.'warehouse_product_location WHERE id_warehouse='.(int)$id_warehouse);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user