apply not recurring and split scopes by default

This commit is contained in:
Denis Duliçi
2022-06-05 03:33:26 +03:00
parent 3ac8186d4a
commit 2cdeaad00d
10 changed files with 72 additions and 33 deletions

View File

@ -34,7 +34,7 @@ class Content extends Component
$this->counts = [];
// Handle documents
$this->documents = $this->contact->documents()->with('transactions')->isNotRecurring()->get();
$this->documents = $this->contact->documents()->with('transactions')->get();
$this->counts['documents'] = $this->documents->count();
@ -61,7 +61,7 @@ class Content extends Component
}
// Handle payments
$this->transactions = $this->contact->transactions()->with('account', 'category')->isNotRecurring()->get();
$this->transactions = $this->contact->transactions()->with('account', 'category')->get();
$this->counts['transactions'] = $this->transactions->count();