Browse Source

[producer] Commande : possibilité d'avoir deux commandes pour une distribution donnée

refactoring
Guillaume 2 years ago
parent
commit
da799cf356
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      producer/controllers/OrderController.php

+ 2
- 0
producer/controllers/OrderController.php View File

@@ -193,8 +193,10 @@ class OrderController extends ProducerBaseController
$order = Order::find()
->where('id_distribution = :id_distribution')
->andWhere('id_user = :id_user')
->andWhere('id_point_sale = :id_point_sale')
->params([
':id_distribution' => $posts['Order']['id_distribution'],
':id_point_sale' => $posts['Order']['id_point_sale'],
':id_user' => $user ? $user->id : null
])
->one();

Loading…
Cancel
Save