changed export document transaction model scope
This commit is contained in:
parent
f07aa0b467
commit
625ee4bf65
@ -13,7 +13,7 @@ class DocumentTransactions extends Export implements WithColumnFormatting
|
|||||||
{
|
{
|
||||||
public function collection()
|
public function collection()
|
||||||
{
|
{
|
||||||
$model = Model::with('account', 'category', 'contact', 'document')->income()->isDocument()->usingSearchString(request('search'));
|
$model = Model::with('account', 'category', 'contact', 'document')->{$this->type}()->isDocument()->usingSearchString(request('search'));
|
||||||
|
|
||||||
if (!empty($this->ids)) {
|
if (!empty($this->ids)) {
|
||||||
$model->whereIn('document_id', (array) $this->ids);
|
$model->whereIn('document_id', (array) $this->ids);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user