mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Show recurrence preview w/o marking active
This commit is contained in:
parent
8de96b6d05
commit
5b5e4ee5f3
@ -1190,7 +1190,7 @@ class Invoice extends EntityModel implements BalanceAffecting
|
||||
*
|
||||
* @return null
|
||||
*/
|
||||
public function getPrettySchedule($min = 1, $max = 10)
|
||||
public function getPrettySchedule($min = 0, $max = 10)
|
||||
{
|
||||
if (! $schedule = $this->getSchedule($max)) {
|
||||
return null;
|
||||
|
@ -2788,7 +2788,7 @@ $LANG = array(
|
||||
'client_must_be_active' => 'Error: the client must be active',
|
||||
'purge_client' => 'Purge Client',
|
||||
'purged_client' => 'Successfully purged client',
|
||||
'purge_client_warning' => 'All related records (invoices, tasks, expenses, documents, etc) will also be deleted.'
|
||||
'purge_client_warning' => 'All related records (invoices, tasks, expenses, documents, etc) will also be deleted.',
|
||||
|
||||
);
|
||||
|
||||
|
@ -293,8 +293,8 @@
|
||||
@if (isset($lastSent) && $lastSent)
|
||||
{!! trans('texts.last_sent_on', ['date' => link_to('/invoices/'.$lastSent->public_id, $invoice->last_sent_date, ['id' => 'lastSent'])]) !!} <p/>
|
||||
@endif
|
||||
@if ($invoice->is_recurring && $invoice->getNextSendDate())
|
||||
{!! trans('texts.next_send_on', ['date' => '<span data-bind="tooltip: {title: \''.$invoice->getPrettySchedule().'\', html: true}">'.$account->formatDate($invoice->getNextSendDate()).
|
||||
@if ($invoice->is_recurring)
|
||||
{!! trans('texts.next_send_on', ['date' => '<span data-bind="tooltip: {title: \''.$invoice->getPrettySchedule().'\', html: true}">'.$account->formatDate($invoice->getNextSendDate() ?: $invoice->start_date).
|
||||
'<span class="glyphicon glyphicon-info-sign" style="padding-left:10px;color:#B1B5BA"></span></span>']) !!}
|
||||
@if ($invoice->getDueDate())
|
||||
<br>
|
||||
|
Loading…
x
Reference in New Issue
Block a user