Browse Source

[producer] Correction bug récupération des points de vente

dev
Guillaume Bourgeois 4 years ago
parent
commit
9c9f6d0b31
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      common/models/User.php

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

$pointSale = PointSale::findOne(['id' => $arrayUserPointSale[0]->id_point_sale]); $pointSale = PointSale::findOne(['id' => $arrayUserPointSale[0]->id_point_sale]);
} else { } else {
$lastOrder = Order::find()->innerJoinWith('pointSale', true)->where([ $lastOrder = Order::find()->innerJoinWith('pointSale', true)->where([
'id_user' => $this->id,
'order.id_user' => $this->id,
'point_sale.id_producer' => GlobalParam::getCurrentProducerId() 'point_sale.id_producer' => GlobalParam::getCurrentProducerId()
]) ])
->orderBy('order.id DESC') ->orderBy('order.id DESC')

Loading…
Cancel
Save