mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fix badgers
This commit is contained in:
parent
a40fb82971
commit
f3d3385678
@ -204,28 +204,28 @@ class Invoice extends BaseModel
|
||||
{
|
||||
switch ($status) {
|
||||
case Invoice::STATUS_DRAFT:
|
||||
return '<h4><span class="badge badge-light">'.ctrans('texts.draft').'</span></h4>';
|
||||
return '<h5><span class="badge badge-light">'.ctrans('texts.draft').'</span></h5>';
|
||||
break;
|
||||
case Invoice::STATUS_SENT:
|
||||
return '<h4><span class="badge badge-primary">'.ctrans('texts.sent').'</span></h4>';
|
||||
return '<h5><span class="badge badge-primary">'.ctrans('texts.sent').'</span></h5>';
|
||||
break;
|
||||
case Invoice::STATUS_PARTIAL:
|
||||
return '<h4><span class="badge badge-primary">'.ctrans('texts.partial').'</span></h4>';
|
||||
return '<h5><span class="badge badge-primary">'.ctrans('texts.partial').'</span></h5>';
|
||||
break;
|
||||
case Invoice::STATUS_PAID:
|
||||
return '<h4><span class="badge badge-success">'.ctrans('texts.paid').'</span></h4>';
|
||||
return '<h5><span class="badge badge-success">'.ctrans('texts.paid').'</span></h5>';
|
||||
break;
|
||||
case Invoice::STATUS_CANCELLED:
|
||||
return '<h4><span class="badge badge-secondary">'.ctrans('texts.cancelled').'</span></h4>';
|
||||
return '<h5><span class="badge badge-secondary">'.ctrans('texts.cancelled').'</span></h5>';
|
||||
break;
|
||||
case Invoice::STATUS_OVERDUE:
|
||||
return '<h4><span class="badge badge-danger">'.ctrans('texts.overdue').'</span></h4>';
|
||||
return '<h5><span class="badge badge-danger">'.ctrans('texts.overdue').'</span></h5>';
|
||||
break;
|
||||
case Invoice::STATUS_UNPAID:
|
||||
return '<h4><span class="badge badge-warning">'.ctrans('texts.unpaid').'</span></h4>';
|
||||
return '<h5><span class="badge badge-warning">'.ctrans('texts.unpaid').'</span></h5>';
|
||||
break;
|
||||
case Invoice::STATUS_REVERSED:
|
||||
return '<h4><span class="badge badge-info">'.ctrans('texts.reversed').'</span></h4>';
|
||||
return '<h5><span class="badge badge-info">'.ctrans('texts.reversed').'</span></h5>';
|
||||
break;
|
||||
default:
|
||||
# code...
|
||||
|
@ -90,22 +90,22 @@ class Payment extends BaseModel
|
||||
{
|
||||
switch ($status) {
|
||||
case self::STATUS_PENDING:
|
||||
return '<h4><span class="badge badge-light">'.ctrans('texts.payment_status_1').'</span></h4>';
|
||||
return '<h6><span class="badge badge-secondary">'.ctrans('texts.payment_status_1').'</span></h6>';
|
||||
break;
|
||||
case self::STATUS_VOIDED:
|
||||
return '<h4><span class="badge badge-light">'.ctrans('texts.payment_status_2').'</span></h4>';
|
||||
return '<h6><span class="badge badge-warning">'.ctrans('texts.payment_status_2').'</span></h6>';
|
||||
break;
|
||||
case self::STATUS_FAILED:
|
||||
return '<h4><span class="badge badge-light">'.ctrans('texts.payment_status_3').'</span></h4>';
|
||||
return '<h6><span class="badge badge-danger">'.ctrans('texts.payment_status_3').'</span></h6>';
|
||||
break;
|
||||
case self::STATUS_COMPLETED:
|
||||
return '<h4><span class="badge badge-light">'.ctrans('texts.payment_status_4').'</span></h4>';
|
||||
return '<h6><span class="badge badge-info">'.ctrans('texts.payment_status_4').'</span></h6>';
|
||||
break;
|
||||
case self::STATUS_PARTIALLY_REFUNDED:
|
||||
return '<h4><span class="badge badge-light">'.ctrans('texts.payment_status_5').'</span></h4>';
|
||||
return '<h6><span class="badge badge-success">'.ctrans('texts.payment_status_5').'</span></h6>';
|
||||
break;
|
||||
case self::STATUS_REFUNDED:
|
||||
return '<h4><span class="badge badge-light">'.ctrans('texts.payment_status_6').'</span></h4>';
|
||||
return '<h6><span class="badge badge-primary">'.ctrans('texts.payment_status_6').'</span></h6>';
|
||||
break;
|
||||
default:
|
||||
# code...
|
||||
|
Loading…
Reference in New Issue
Block a user