Ver código fonte

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

dev
Guillaume 4 anos atrás
pai
commit
8bd88e265c
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      common/models/Distribution.php

+ 1
- 1
common/models/Distribution.php Ver arquivo

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

Carregando…
Cancelar
Salvar