[-] Core: Fix StockManager::getProductRealQuantities() for refunded quantities on non delivered orders

This commit is contained in:
Rémi Gaillard
2013-05-14 09:53:33 +02:00
parent ce71def570
commit dff200ac9d
+1 -1
View File
@@ -485,7 +485,7 @@ class StockManagerCore implements StockManagerInterface
$client_orders_qty = 0;
if (count($res))
foreach ($res as $row)
$client_orders_qty += $row['product_quantity'] + $row['product_quantity_refunded'];
$client_orders_qty += ($row['product_quantity'] - $row['product_quantity_refunded']);
// Gets supply_orders_qty
$query = new DbQuery();