Переглянути джерело

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

dev
Guillaume Bourgeois 5 роки тому
джерело
коміт
9c9f6d0b31
1 змінених файлів з 1 додано та 1 видалено
  1. +1
    -1
      common/models/User.php

+ 1
- 1
common/models/User.php Переглянути файл

@@ -621,7 +621,7 @@ class User extends ActiveRecordCommon implements IdentityInterface
$pointSale = PointSale::findOne(['id' => $arrayUserPointSale[0]->id_point_sale]);
} else {
$lastOrder = Order::find()->innerJoinWith('pointSale', true)->where([
'id_user' => $this->id,
'order.id_user' => $this->id,
'point_sale.id_producer' => GlobalParam::getCurrentProducerId()
])
->orderBy('order.id DESC')

Завантаження…
Відмінити
Зберегти