// Fixed OrderHistory for Packs

This commit is contained in:
bMancone committed 2012-01-11 10:11:24 +00:00
1 parent 25b8013007
commit e9ce54daa3
1 file changed
+2 -1
+2 -1
View File
@@ -170,6 +170,7 @@ class OrderHistoryCore extends ObjectModel
true true
); );
} }
StockAvailable::updateQuantity($pack_product->id, 0, (int)$pack_product->pack_quantity * $product['product_quantity'], $order->id_shop);
} }
} }
} }
@@ -189,7 +190,6 @@ class OrderHistoryCore extends ObjectModel
true true
); );
} }
}
if (StockAvailable::dependsOnStock($product['product_id'], $order->id_shop)) if (StockAvailable::dependsOnStock($product['product_id'], $order->id_shop))
StockAvailable::synchronize($product['product_id']); StockAvailable::synchronize($product['product_id']);
@@ -197,6 +197,7 @@ class OrderHistoryCore extends ObjectModel
StockAvailable::updateQuantity($product['product_id'], $product['product_attribute_id'], (int)$product['physical_quantity'], $order->id_shop); StockAvailable::updateQuantity($product['product_id'], $product['product_attribute_id'], (int)$product['physical_quantity'], $order->id_shop);
} }
} }
}
$this->id_order_state = (int)($new_order_state); $this->id_order_state = (int)($new_order_state);