mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-22 04:50:54 -04:00
Fix quote status in portal
This commit is contained in:
parent
99a90aa345
commit
be1bf0f3fd
@ -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…
x
Reference in New Issue
Block a user