Selaa lähdekoodia

Merge branch 'dev'

prodstable
Guillaume Bourgeois 2 vuotta sitten
vanhempi
commit
6c7b8b9187
1 muutettua tiedostoa jossa 5 lisäystä ja 2 poistoa
  1. +5
    -2
      producer/controllers/OrderController.php

+ 5
- 2
producer/controllers/OrderController.php Näytä tiedosto

@@ -760,8 +760,11 @@ class OrderController extends ProducerBaseController
'id_user' => User::getCurrentId()
]);

$json['user'] = false;
if($user && !$userProducer) {
$userProducer = Producer::addUser($user->id, $producer->id);
}

$json['user'] = false;
if ($userProducer) {
$json['user'] = [
'address' => $user->address,
@@ -841,7 +844,7 @@ class OrderController extends ProducerBaseController
$product->getAttributes(),
[
'unit_coefficient' => Product::$unitsArray[$product->unit]['coefficient'],
'prices' => $product->getPriceArray($userProducer->user, $pointSaleCurrent),
'prices' => $product->getPriceArray($user, $pointSaleCurrent),
'productDistribution' => $product['productDistribution'],
'productPointSale' => $product['productPointSale'],
]

Loading…
Peruuta
Tallenna