// Improved StockInstantState / StockMvt
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11803 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -202,6 +202,8 @@ class AdminStockInstantStateControllerCore extends AdminController
|
||||
$query->select('SUM(price_te * physical_quantity) as valuation');
|
||||
$query->from('stock');
|
||||
$query->where('id_product = '.(int)$item['id_product'].' AND id_product_attribute = '.(int)$item['id_product_attribute']);
|
||||
if ($this->getCurrentCoverageWarehouse() != -1)
|
||||
$query->where('id_warehouse = '.(int)$this->getCurrentCoverageWarehouse());
|
||||
$res = Db::getInstance(_PS_USE_SQL_SLAVE_)->getRow($query);
|
||||
|
||||
$item['physical_quantity'] = $res['physical_quantity'];
|
||||
|
||||
Reference in New Issue
Block a user