@@ -329,7 +329,7 @@ class Distribution extends ActiveRecordCommon | |||
if($ordersArray) { | |||
foreach($ordersArray as $order) { | |||
foreach($order->productOrder as $productOrder) { | |||
if($order->productOrder->id_product == $product->id) { | |||
if($productOrder->id_product == $product->id) { | |||
$productOrder->price = $product->price ; | |||
$productOrder->save() ; | |||
} |