|
|
|
|
|
|
|
|
|
|
|
|
|
|
class DocumentStore extends AbstractStore |
|
|
class DocumentStore extends AbstractStore |
|
|
{ |
|
|
{ |
|
|
use SectionStoreTrait; |
|
|
|
|
|
use MerchantStoreTrait; |
|
|
use MerchantStoreTrait; |
|
|
|
|
|
|
|
|
protected DocumentRepositoryQuery $query; |
|
|
protected DocumentRepositoryQuery $query; |
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
$query->filterIsOnlineAndOffline(); |
|
|
$query->filterIsOnlineAndOffline(); |
|
|
|
|
|
|
|
|
if(isset($this->section) && $this->section) { |
|
|
|
|
|
$query->filterBySection($this->section); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(isset($this->merchant) && $this->merchant) { |
|
|
if(isset($this->merchant) && $this->merchant) { |
|
|
$query->filterByMerchantViaSection($this->merchant); |
|
|
|
|
|
|
|
|
$query->filterByMerchant($this->merchant); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return $query; |
|
|
return $query; |