Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Add info on expired recurring transactions.
James Cole6f6087995de2
diff --git a/app/Http/Controllers/Recurring/IndexController.php b/app/Http/Controllers/Recurring/IndexController.phpindex 449cca69cc..ea84c7044e 100644--- a/app/Http/Controllers/Recurring/IndexController.php+++ b/app/Http/Controllers/Recurring/IndexController.php@@ -85,6 +85,8 @@ class IndexController extends Controller$page = 0 === (int) $request->get('page') ? 1 : (int) $request->get('page');$pageSize = (int) app('preferences')->get('listPageSize', 50)->data;$collection = $this->recurring->get();+ $today = new Carbon;+ $year = new Carbon;// split collection$total = $collection->count();@@ -98,8 +100,7 @@ class IndexController extends Controller$recurring = [];/** @var Recurrence $recurrence */foreach ($recurrences as $recurrence) {- $today = new Carbon;- $year = new Carbon;+$year->addYear();if ($recurrence->first_date > $today) {$today = clone $recurrence->first_date;@@ -123,7 +124,7 @@ class IndexController extends Controller$this->verifyRecurringCronJob();- return view('recurring.index', compact('paginator', 'page', 'pageSize', 'total'));+ return view('recurring.index', compact('paginator', 'today', 'page', 'pageSize', 'total'));}}diff --git a/resources/lang/en_US/firefly.php b/resources/lang/en_US/firefly.phpindex 2707ff6e11..03164d86dd 100644--- a/resources/lang/en_US/firefly.php+++ b/resources/lang/en_US/firefly.php@@ -1519,6 +1519,7 @@ return [// recurring transactions'recurrences' => 'Recurring transactions',+ 'repeat_until_in_past' => 'This recurring transaction stopped repeating on :date.','recurring_calendar_view' => 'Calendar','no_recurring_title_default' => 'Let\'s create a recurring transaction!','no_recurring_intro_default' => 'You have no recurring transactions yet. You can use these to make Firefly III automatically create transactions for you.',diff --git a/resources/views/v1/recurring/index.twig b/resources/views/v1/recurring/index.twigindex 98f53febe2..dd6bd8386a 100644--- a/resources/views/v1/recurring/index.twig+++ b/resources/views/v1/recurring/index.twig@@ -85,6 +85,11 @@</ol></td><td>+ {% if null != rt.repeat_until and today > rt.repeat_until %}+ <span class="text-danger">+ {{ trans('firefly.repeat_until_in_past', {date: rt.repeat_until.formatLocalized(monthAndDayFormat) }) }}+ </span>+ {% endif %}<ul>{% for rep in rt.repetitions %}<li>{{ rep.description }}