From 4aad406ab01bbeb8b55485bc911724d29c672c1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Fri, 10 Sep 2021 21:42:46 +0200 Subject: [PATCH] Hide invoices with "Cancelled" status --- app/Http/Livewire/InvoicesTable.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Livewire/InvoicesTable.php b/app/Http/Livewire/InvoicesTable.php index deefd93b39d9..ca8478616346 100644 --- a/app/Http/Livewire/InvoicesTable.php +++ b/app/Http/Livewire/InvoicesTable.php @@ -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);