mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-14 08:11:20 +00:00
Add info on expired recurring transactions.
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -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.',
|
||||
|
@@ -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 }}
|
||||
|
Reference in New Issue
Block a user