mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge pull request #4884 from beganovich/v5-1102-hide-drafts-from-client-portal
(v5) Hide draft quotes in client portal
This commit is contained in:
commit
982523d52b
@ -28,6 +28,7 @@ class CreditsTable extends Component
|
|||||||
{
|
{
|
||||||
$query = Credit::query()
|
$query = Credit::query()
|
||||||
->where('client_id', auth('contact')->user()->client->id)
|
->where('client_id', auth('contact')->user()->client->id)
|
||||||
|
->where('status_id', '<>', Credit::STATUS_DRAFT)
|
||||||
->orderBy($this->sort_field, $this->sort_asc ? 'asc' : 'desc')
|
->orderBy($this->sort_field, $this->sort_asc ? 'asc' : 'desc')
|
||||||
->paginate($this->per_page);
|
->paginate($this->per_page);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user