Pārlūkot izejas kodu

[backend] Prix : mettre à jour le prix de ProductOrder des distributions futures lors de la modification de Product.

dev
Guillaume pirms 4 gadiem
vecāks
revīzija
8bd88e265c
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      common/models/Distribution.php

+ 1
- 1
common/models/Distribution.php Parādīt failu

@@ -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() ;
}

Notiek ielāde…
Atcelt
Saglabāt