瀏覽代碼

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

dev
Guillaume Bourgeois 4 年之前
父節點
當前提交
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')

Loading…
取消
儲存