[-] Core: Fix StockManager::getProductRealQuantities() for refunded quantities on non delivered orders
This commit is contained in:
1 parent
ce71def570
commit
dff200ac9d
1 file changed
+1
-1
@@ -485,7 +485,7 @@ class StockManagerCore implements StockManagerInterface
|
|||||||
$client_orders_qty = 0;
|
$client_orders_qty = 0;
|
||||||
if (count($res))
|
if (count($res))
|
||||||
foreach ($res as $row)
|
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
|
// Gets supply_orders_qty
|
||||||
$query = new DbQuery();
|
$query = new DbQuery();
|
||||||
|
|||||||
Reference in new issue
Block a user