|
|
@@ -107,7 +107,7 @@ class UserSearch extends User |
|
|
|
return $dataProvider; |
|
|
|
} |
|
|
|
|
|
|
|
$query->innerJoin('user_producer','user.id = user_producer.id_user AND user_producer.id_producer = :id_producer', [':id_producer' => Producer::getId()]) ; |
|
|
|
$query->innerJoin('user_producer','user.id = user_producer.id_user AND user_producer.id_producer = :id_producer AND user_producer.active = 1', [':id_producer' => Producer::getId()]) ; |
|
|
|
|
|
|
|
if(isset($this->id_point_sale) && $this->id_point_sale) { |
|
|
|
$pointSale = PointSale::findOne(['id' => $this->id_point_sale]) ; |