From 5b564efe1ee8912dfa57c86075737f5f42b354f5 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 15 Mar 2018 13:01:30 +0200 Subject: [PATCH] Hide recurrence if start date is blank --- resources/views/invoices/edit.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/invoices/edit.blade.php b/resources/views/invoices/edit.blade.php index 3e8d9dd22aba..01cb6f4dd434 100644 --- a/resources/views/invoices/edit.blade.php +++ b/resources/views/invoices/edit.blade.php @@ -293,7 +293,7 @@ @if (isset($lastSent) && $lastSent) {!! trans('texts.last_sent_on', ['date' => link_to('/invoices/'.$lastSent->public_id, $invoice->last_sent_date, ['id' => 'lastSent'])]) !!}

@endif - @if ($invoice->is_recurring) + @if ($invoice->is_recurring && $invoice->start_date) {!! trans('texts.next_send_on', ['date' => ''.$account->formatDate($invoice->getNextSendDate() ?: $invoice->start_date). '']) !!} @if ($invoice->getDueDate())