1
0
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:
David Bomba 2021-01-15 08:33:01 +11:00 committed by GitHub
commit f64a798ca5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -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', [

View File

@ -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;