loadDefinition(SharedPointSaleDefinition::class); } public function filterIsStatusOnline() { $this->andWhere(['shared_point_sale.status' => StatusInterface::STATUS_ONLINE]); return $this; } public function filterByProducerOfPointSale(Producer $producer): self { $this->andWhere(['point_sale.id_producer' => $producer->id]); return $this; } public function filterByProducerWithSharing(Producer $producer): self { $this->andWhere(['id_producer_with_sharing' => $producer->id]); return $this; } }