fixed all recurring issues #315
This commit is contained in:
		@@ -3,13 +3,13 @@
 | 
			
		||||
@section('title', trans_choice('general.bills', 1) . ': ' . $bill->bill_number)
 | 
			
		||||
 | 
			
		||||
@section('content')
 | 
			
		||||
    @if ($bill->recurring()->count())
 | 
			
		||||
    @if (($recurring = $invoice->recurring) && ($next = $recurring->next()))
 | 
			
		||||
        <div class="callout callout-info">
 | 
			
		||||
            <h4>{{ trans('recurring.recurring') }}</h4>
 | 
			
		||||
 | 
			
		||||
            <p>{{ trans('recurring.message', [
 | 
			
		||||
                    'type' => mb_strtolower(trans_choice('general.bills', 1)),
 | 
			
		||||
                    'date' => $bill->recurring->schedule()->next()->getStart()->format($date_format)
 | 
			
		||||
                    'date' => $next->format($date_format)
 | 
			
		||||
                ]) }}
 | 
			
		||||
            </p>
 | 
			
		||||
        </div>
 | 
			
		||||
 
 | 
			
		||||
@@ -3,13 +3,13 @@
 | 
			
		||||
@section('title', trans('general.title.edit', ['type' => trans_choice('general.payments', 1)]))
 | 
			
		||||
 | 
			
		||||
@section('content')
 | 
			
		||||
    @if ($payment->recurring()->count())
 | 
			
		||||
    @if (($recurring = $invoice->recurring) && ($next = $recurring->next()))
 | 
			
		||||
        <div class="callout callout-info">
 | 
			
		||||
            <h4>{{ trans('recurring.recurring') }}</h4>
 | 
			
		||||
 | 
			
		||||
            <p>{{ trans('recurring.message', [
 | 
			
		||||
                    'type' => mb_strtolower(trans_choice('general.payments', 1)),
 | 
			
		||||
                    'date' => $payment->recurring->schedule()->next()->getStart()->format($date_format)
 | 
			
		||||
                    'date' => $next->format($date_format)
 | 
			
		||||
                ]) }}
 | 
			
		||||
            </p>
 | 
			
		||||
        </div>
 | 
			
		||||
 
 | 
			
		||||
@@ -3,13 +3,13 @@
 | 
			
		||||
@section('title', trans_choice('general.invoices', 1) . ': ' . $invoice->invoice_number)
 | 
			
		||||
 | 
			
		||||
@section('content')
 | 
			
		||||
    @if ($invoice->recurring()->count())
 | 
			
		||||
    @if (($recurring = $invoice->recurring) && ($next = $recurring->next()))
 | 
			
		||||
        <div class="callout callout-info">
 | 
			
		||||
            <h4>{{ trans('recurring.recurring') }}</h4>
 | 
			
		||||
 | 
			
		||||
            <p>{{ trans('recurring.message', [
 | 
			
		||||
                    'type' => mb_strtolower(trans_choice('general.invoices', 1)),
 | 
			
		||||
                    'date' => $invoice->recurring->schedule()->next()->getStart()->format($date_format)
 | 
			
		||||
                    'date' => $next->format($date_format)
 | 
			
		||||
                ]) }}
 | 
			
		||||
            </p>
 | 
			
		||||
        </div>
 | 
			
		||||
 
 | 
			
		||||
@@ -3,13 +3,13 @@
 | 
			
		||||
@section('title', trans('general.title.edit', ['type' => trans_choice('general.revenues', 1)]))
 | 
			
		||||
 | 
			
		||||
@section('content')
 | 
			
		||||
    @if ($revenue->recurring()->count())
 | 
			
		||||
    @if (($recurring = $invoice->recurring) && ($next = $recurring->next()))
 | 
			
		||||
        <div class="callout callout-info">
 | 
			
		||||
            <h4>{{ trans('recurring.recurring') }}</h4>
 | 
			
		||||
 | 
			
		||||
            <p>{{ trans('recurring.message', [
 | 
			
		||||
                    'type' => mb_strtolower(trans_choice('general.revenues', 1)),
 | 
			
		||||
                    'date' => $revenue->recurring->schedule()->next()->getStart()->format($date_format)
 | 
			
		||||
                    'date' => $next->format($date_format)
 | 
			
		||||
                ]) }}
 | 
			
		||||
            </p>
 | 
			
		||||
        </div>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user