mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 12:42:36 +01:00
Fix quote status in portal
This commit is contained in:
parent
c42ef3b97b
commit
6a700a6d8b
@ -336,6 +336,9 @@ class InvoiceRepository extends BaseRepository
|
||||
} elseif ($model->invoice_status_id == INVOICE_STATUS_PARTIAL) {
|
||||
$label = trans('texts.status_partial');
|
||||
$class = 'info';
|
||||
} elseif ($entityType == ENTITY_QUOTE && ($model->invoice_status_id >= INVOICE_STATUS_APPROVED || $model->quote_invoice_id)) {
|
||||
$label = trans('texts.status_approved');
|
||||
$class = 'success';
|
||||
} elseif (Invoice::calcIsOverdue($model->balance, $model->due_date)) {
|
||||
$class = 'danger';
|
||||
if ($entityType == ENTITY_INVOICE) {
|
||||
@ -343,9 +346,6 @@ class InvoiceRepository extends BaseRepository
|
||||
} else {
|
||||
$label = trans('texts.expired');
|
||||
}
|
||||
} elseif ($entityType == ENTITY_QUOTE && ($model->invoice_status_id >= INVOICE_STATUS_APPROVED || $model->quote_invoice_id)) {
|
||||
$label = trans('texts.status_approved');
|
||||
$class = 'success';
|
||||
} else {
|
||||
$class = 'default';
|
||||
if ($entityType == ENTITY_INVOICE) {
|
||||
|
Loading…
Reference in New Issue
Block a user