Hide invoices with "Cancelled" status

This commit is contained in:
Benjamin Beganović 2021-09-10 21:42:46 +02:00
parent 122664037d
commit 4aad406ab0

View File

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