// #PSFV-94 : bugs fix for add / remove products to a supplier order
This commit is contained in:
1 parent
4a0b2cae60
commit
d20608cb7b
3 files changed
+32
-8
No files matched your search
@@ -143,7 +143,7 @@ class AdminStockCoverControllerCore extends AdminController
|
||||
$this->_select = 'a.id_product as id, COUNT(pa.id_product_attribute) as variations, s.physical_quantity as stock';
|
||||
$this->_join = 'LEFT JOIN `'._DB_PREFIX_.'product_attribute` pa ON (pa.id_product = a.id_product)
|
||||
INNER JOIN `'._DB_PREFIX_.'stock` s ON (s.id_product = a.id_product)';
|
||||
$this->_where = 'AND s.id_product_attribute = 0';
|
||||
|
||||
if ($this->getCurrentCoverageWarehouse() != -1)
|
||||
$this->_where .= ' AND s.id_warehouse = '.$this->getCurrentCoverageWarehouse();
|
||||
|
||||
|
||||
Reference in new issue
Block a user