Quellcode durchsuchen

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

refactoring
Guillaume vor 4 Jahren
Ursprung
Commit
8bd88e265c
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. +1
    -1
      common/models/Distribution.php

+ 1
- 1
common/models/Distribution.php Datei anzeigen

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

Laden…
Abbrechen
Speichern