mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix recurring invoice status label
This commit is contained in:
parent
a6a4eac8fd
commit
6c5af5c593
@ -76,6 +76,8 @@
|
|||||||
@if ($invoice->is_recurring && $invoice->isSent())
|
@if ($invoice->is_recurring && $invoice->isSent())
|
||||||
@if (! $invoice->last_sent_date || $invoice->last_sent_date == '0000-00-00')
|
@if (! $invoice->last_sent_date || $invoice->last_sent_date == '0000-00-00')
|
||||||
{!! $invoice->present()->statusLabel(trans('texts.pending')) !!}
|
{!! $invoice->present()->statusLabel(trans('texts.pending')) !!}
|
||||||
|
@elseif ($invoice->end_date && Carbon::parse($invoice->end_date)->isPast())
|
||||||
|
{!! $invoice->present()->statusLabel(trans('texts.status_completed')) !!}
|
||||||
@else
|
@else
|
||||||
{!! $invoice->present()->statusLabel(trans('texts.active')) !!}
|
{!! $invoice->present()->statusLabel(trans('texts.active')) !!}
|
||||||
@endif
|
@endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user