Merge pull request #6623 from beganovich/v5-679

Hide invoices with "Cancelled" status
This commit is contained in:
David Bomba 2021-09-11 08:45:18 +10:00 committed by GitHub
commit 098c0b8edc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,6 +76,7 @@ class InvoicesTable extends Component
$query = $query
->where('client_id', auth('contact')->user()->client->id)
->where('status_id', '<>', Invoice::STATUS_DRAFT)
->where('status_id', '<>', Invoice::STATUS_CANCELLED)
->withTrashed()
->paginate($this->per_page);