Explorar el Código

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

dev
Guillaume Bourgeois hace 4 años
padre
commit
9c9f6d0b31
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      common/models/User.php

+ 1
- 1
common/models/User.php Ver fichero

@@ -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')

Cargando…
Cancelar
Guardar