// #PSFV-94 : bugs fix for add / remove products to a supplier order

This commit is contained in:
dSevere
2011-11-07 16:02:38 +00:00
parent 4a0b2cae60
commit d20608cb7b
3 changed files with 32 additions and 8 deletions
@@ -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();