Browse Source

Merge branch 'dev'

prodstable
Guillaume 4 years ago
parent
commit
55df6ea924
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      common/models/Distribution.php

+ 1
- 1
common/models/Distribution.php View File

if($ordersArray) { if($ordersArray) {
foreach($ordersArray as $order) { foreach($ordersArray as $order) {
foreach($order->productOrder as $productOrder) { foreach($order->productOrder as $productOrder) {
if($order->productOrder->id_product == $product->id) {
if($productOrder->id_product == $product->id) {
$productOrder->price = $product->price ; $productOrder->price = $product->price ;
$productOrder->save() ; $productOrder->save() ;
} }

Loading…
Cancel
Save