From 77e1ba1ad2a3dd993740aa07f1ef4acb94eddffd Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 16 Sep 2022 15:29:48 +1000 Subject: [PATCH] Fixes for tests --- app/Http/Livewire/InvoicesTable.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Livewire/InvoicesTable.php b/app/Http/Livewire/InvoicesTable.php index bfb6a47f5109..f35715e17867 100644 --- a/app/Http/Livewire/InvoicesTable.php +++ b/app/Http/Livewire/InvoicesTable.php @@ -76,7 +76,8 @@ class InvoicesTable extends Component $query = $query ->where('client_id', auth()->guard('contact')->user()->client_id) - ->whereIn('status_id', [Invoice::STATUS_SENT, Invoice::STATUS_PARTIAL, Invoice::STATUS_PAID, Invoice::STATUS_REVERSED]) + ->where('status_id', '<>', Invoice::STATUS_DRAFT) + ->where('status_id', '<>', Invoice::STATUS_CANCELLED) ->withTrashed() ->paginate($this->per_page);