mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 09:22:33 +00:00
Fix some last-minute issues.
This commit is contained in:
@@ -196,7 +196,7 @@ class AvailableBudgetController extends Controller
|
|||||||
}
|
}
|
||||||
session()->flash('success', trans('firefly.set_ab'));
|
session()->flash('success', trans('firefly.set_ab'));
|
||||||
|
|
||||||
return redirect(route('budgets.index'));
|
return redirect(route('budgets.index', [$start->format('Y-m-d'), $end->format('Y-m-d')]));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -86,6 +86,7 @@ class IndexController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* TODO the "budgeted" progress bar doesn't update.
|
||||||
* Show all budgets.
|
* Show all budgets.
|
||||||
*
|
*
|
||||||
* @param Request $request
|
* @param Request $request
|
||||||
@@ -194,9 +195,6 @@ class IndexController extends Controller
|
|||||||
return view(
|
return view(
|
||||||
'budgets.index', compact(
|
'budgets.index', compact(
|
||||||
'availableBudgets',
|
'availableBudgets',
|
||||||
//'available',
|
|
||||||
//'currentMonth', 'next', 'nextText', 'prev',
|
|
||||||
//'prevText', 'previousLoop', 'nextLoop',
|
|
||||||
'budgeted', 'spent',
|
'budgeted', 'spent',
|
||||||
'prevLoop', 'nextLoop',
|
'prevLoop', 'nextLoop',
|
||||||
'budgets',
|
'budgets',
|
||||||
|
@@ -155,7 +155,7 @@ class ReportFormRequest extends Request
|
|||||||
{
|
{
|
||||||
/** @var AccountRepositoryInterface $repository */
|
/** @var AccountRepositoryInterface $repository */
|
||||||
$repository = app(AccountRepositoryInterface::class);
|
$repository = app(AccountRepositoryInterface::class);
|
||||||
$set = $this->get('exp_rev');
|
$set = $this->get('double');
|
||||||
$collection = new Collection;
|
$collection = new Collection;
|
||||||
if (is_array($set)) {
|
if (is_array($set)) {
|
||||||
foreach ($set as $accountId) {
|
foreach ($set as $accountId) {
|
||||||
|
@@ -356,9 +356,10 @@ class TagRepository implements TagRepositoryInterface
|
|||||||
|
|
||||||
// return value for tag cloud:
|
// return value for tag cloud:
|
||||||
$return[$tag->id] = [
|
$return[$tag->id] = [
|
||||||
'size' => $fontSize,
|
'size' => $fontSize,
|
||||||
'tag' => $tag->tag,
|
'tag' => $tag->tag,
|
||||||
'id' => $tag->id,
|
'id' => $tag->id,
|
||||||
|
'created_at' => $tag->created_at,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -481,7 +482,7 @@ class TagRepository implements TagRepositoryInterface
|
|||||||
$tagQuery->where('tags.date', '>=', $year . '-01-01 00:00:00')->where('tags.date', '<=', $year . '-12-31 23:59:59');
|
$tagQuery->where('tags.date', '>=', $year . '-01-01 00:00:00')->where('tags.date', '<=', $year . '-12-31 23:59:59');
|
||||||
}
|
}
|
||||||
|
|
||||||
return $tagQuery->get(['tags.id', 'tags.tag', DB::raw('SUM(transactions.amount) as amount_sum')]);
|
return $tagQuery->get(['tags.id', 'tags.tag','tags.created_at', DB::raw('SUM(transactions.amount) as amount_sum')]);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -25,12 +25,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-lg-8 col-md-4 col-sm-12 col-xs-12 text-center">
|
<div class="col-lg-8 col-md-4 col-sm-12 col-xs-12 text-center">
|
||||||
<div class="btn btn-group btn-group-lg" style="padding-top:0;">
|
<div class="btn btn-group btn-group-lg" style="padding-top:0;">
|
||||||
<a href="{{ route('budgets.index', [prevLoop[0].start.format('Y-m-d'), prevLoop[0].end.format('Y-m-d')]) }}?page={{ page }}"
|
<a href="{{ route('budgets.index', [prevLoop[0].start.format('Y-m-d'), prevLoop[0].end.format('Y-m-d')]) }}"
|
||||||
class="btn btn-default" title="{{ prevLoop[0].title }}">←</a>
|
class="btn btn-default" title="{{ prevLoop[0].title }}">←</a>
|
||||||
<a title="{{ start.formatLocalized(monthAndDayFormat) }} - {{ end.formatLocalized(monthAndDayFormat) }}"
|
<a title="{{ start.formatLocalized(monthAndDayFormat) }} - {{ end.formatLocalized(monthAndDayFormat) }}"
|
||||||
href="{{ route('budgets.index', [start.format('Y-m-d'), end.format('Y-m-d')]) }}?page={{ page }}"
|
href="{{ route('budgets.index', [start.format('Y-m-d'), end.format('Y-m-d')]) }}"
|
||||||
class="btn btn-default">{{ periodTitle }}</a>
|
class="btn btn-default">{{ periodTitle }}</a>
|
||||||
<a href="{{ route('budgets.index', [nextLoop[0].start.format('Y-m-d'), nextLoop[0].end.format('Y-m-d')]) }}?page={{ page }}"
|
<a href="{{ route('budgets.index', [nextLoop[0].start.format('Y-m-d'), nextLoop[0].end.format('Y-m-d')]) }}"
|
||||||
class="btn btn-default" title="{{ nextLoop[0].title }}">→</a>
|
class="btn btn-default" title="{{ nextLoop[0].title }}">→</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -420,7 +420,7 @@
|
|||||||
var updateBudgetLimitUri = "{{ route('budget-limits.update', ['REPLACEME']) }}";
|
var updateBudgetLimitUri = "{{ route('budget-limits.update', ['REPLACEME']) }}";
|
||||||
|
|
||||||
{#var budgetAmountUri = "{{ route('budgets.amount','REPLACE') }}";#}
|
{#var budgetAmountUri = "{{ route('budgets.amount','REPLACE') }}";#}
|
||||||
{#var updateIncomeUri = "{{ route('budgets.income',[start.format('Y-m-d'),end.format('Y-m-d')]) }}?page={{ page }}";#}
|
{#var updateIncomeUri = "{{ route('budgets.income',[start.format('Y-m-d'),end.format('Y-m-d')]) }}";#}
|
||||||
var periodStart = "{{ start.format('Y-m-d') }}";
|
var periodStart = "{{ start.format('Y-m-d') }}";
|
||||||
var periodEnd = "{{ end.format('Y-m-d') }}";
|
var periodEnd = "{{ end.format('Y-m-d') }}";
|
||||||
</script>
|
</script>
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
{% extends "./layout/default" %}
|
{% extends "./layout/default" %}
|
||||||
|
|
||||||
{% block breadcrumbs %}
|
{% block breadcrumbs %}
|
||||||
{#{{ Breadcrumbs.render(Route.getCurrentRoute.getName, accountIds, budgetIds, start, end) }}#}
|
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, accountIds, categoryIds, start, end) }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
{% extends "./layout/default" %}
|
{% extends "./layout/default" %}
|
||||||
|
|
||||||
{% block breadcrumbs %}
|
{% block breadcrumbs %}
|
||||||
{#{{ Breadcrumbs.render(Route.getCurrentRoute.getName, accountIds, expenseIds, start, end) }}#}
|
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, accountIds, doubleIds, start, end) }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
{% extends "./layout/default" %}
|
{% extends "./layout/default" %}
|
||||||
|
|
||||||
{% block breadcrumbs %}
|
{% block breadcrumbs %}
|
||||||
{#{{ Breadcrumbs.render(Route.getCurrentRoute.getName, accountIds, tagTags, start, end) }}#}
|
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, accountIds, tagIds, start, end) }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
@@ -29,6 +29,7 @@
|
|||||||
<p class="tagcloud">
|
<p class="tagcloud">
|
||||||
{% for tagInfo in entries %}
|
{% for tagInfo in entries %}
|
||||||
<a style="font-size:{{ tagInfo.size }}px;" class="label label-success"
|
<a style="font-size:{{ tagInfo.size }}px;" class="label label-success"
|
||||||
|
title="{{ tagInfo.created_at.formatLocalized(monthAndDayFormat) }}"
|
||||||
href="{{ route('tags.show',tagInfo.id) }}"><i class="fa fa-fw fa-tag"></i> {{ tagInfo.tag }}</a>
|
href="{{ route('tags.show',tagInfo.id) }}"><i class="fa fa-fw fa-tag"></i> {{ tagInfo.tag }}</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</p>
|
</p>
|
||||||
|
@@ -774,16 +774,16 @@ try {
|
|||||||
);
|
);
|
||||||
|
|
||||||
Breadcrumbs::register(
|
Breadcrumbs::register(
|
||||||
'reports.report.account',
|
'reports.report.double',
|
||||||
function (BreadcrumbsGenerator $breadcrumbs, string $accountIds, string $expenseIds, Carbon $start, Carbon $end) {
|
function (BreadcrumbsGenerator $breadcrumbs, string $accountIds, string $doubleIds, Carbon $start, Carbon $end) {
|
||||||
$breadcrumbs->parent('reports.index');
|
$breadcrumbs->parent('reports.index');
|
||||||
|
|
||||||
$monthFormat = (string)trans('config.month_and_day');
|
$monthFormat = (string)trans('config.month_and_day');
|
||||||
$startString = $start->formatLocalized($monthFormat);
|
$startString = $start->formatLocalized($monthFormat);
|
||||||
$endString = $end->formatLocalized($monthFormat);
|
$endString = $end->formatLocalized($monthFormat);
|
||||||
$title = (string)trans('firefly.report_account', ['start' => $startString, 'end' => $endString]);
|
$title = (string)trans('firefly.report_double', ['start' => $startString, 'end' => $endString]);
|
||||||
|
|
||||||
$breadcrumbs->push($title, route('reports.report.account', [$accountIds, $expenseIds, $start->format('Ymd'), $end->format('Ymd')]));
|
$breadcrumbs->push($title, route('reports.report.double', [$accountIds, $doubleIds, $start->format('Ymd'), $end->format('Ymd')]));
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user