mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Merge pull request #4689 from beganovich/v5-0114-hide-drafts-from-quote-tables
(v5) Client portal: Remove drafts from the quotes table
This commit is contained in:
commit
f64a798ca5
@ -36,6 +36,7 @@ class QuotesTable extends Component
|
||||
|
||||
$query = $query
|
||||
->where('client_id', auth('contact')->user()->client->id)
|
||||
->where('status_id', '<>', Quote::STATUS_DRAFT)
|
||||
->paginate($this->per_page);
|
||||
|
||||
return render('components.livewire.quotes-table', [
|
||||
|
@ -225,6 +225,9 @@ class Quote extends BaseModel
|
||||
case self::STATUS_EXPIRED:
|
||||
return '<h5><span class="badge badge-danger">'.ctrans('texts.expired').'</span></h5>';
|
||||
break;
|
||||
case self::STATUS_CONVERTED:
|
||||
return '<h5><span class="badge badge-light">'.ctrans('texts.converted').'</span></h5>';
|
||||
break;
|
||||
default:
|
||||
// code...
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user