Performance improvements for client portal

This commit is contained in:
David Bomba 2022-02-18 16:38:15 +11:00
parent 9c106e8d0a
commit 670ad4359b

View File

@ -75,7 +75,7 @@ class InvoicesTable extends Component
} }
$query = $query $query = $query
->where('client_id', auth()->guard('contact')->user()->client->id) ->where('client_id', auth()->guard('contact')->user()->client_id)
->where('status_id', '<>', Invoice::STATUS_DRAFT) ->where('status_id', '<>', Invoice::STATUS_DRAFT)
->where('status_id', '<>', Invoice::STATUS_CANCELLED) ->where('status_id', '<>', Invoice::STATUS_CANCELLED)
->withTrashed() ->withTrashed()