mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-24 22:48:18 +00:00
Some cleaning up and more charts.
This commit is contained in:
@@ -314,6 +314,9 @@ class ReportController extends Controller
|
||||
// find the budgets we've spent money on this period with these accounts:
|
||||
$budgets = $this->budgetHelper->getBudgetsWithExpenses($start, $end, $accounts);
|
||||
|
||||
// find the categories we've spent money on this period with these accounts:
|
||||
$categories = $this->helper->getCategoriesWithExpenses($start, $end, $accounts);
|
||||
|
||||
Session::flash('gaEventCategory', 'report');
|
||||
Session::flash('gaEventAction', 'year');
|
||||
Session::flash('gaEventLabel', $start->format('Y'));
|
||||
@@ -330,7 +333,7 @@ class ReportController extends Controller
|
||||
'reports.default.year',
|
||||
compact(
|
||||
'start', 'accountReport', 'incomes', 'reportType', 'accountIds', 'end',
|
||||
'expenses', 'incomeTopLength', 'expenseTopLength', 'tags', 'budgets'
|
||||
'expenses', 'incomeTopLength', 'expenseTopLength', 'tags', 'budgets', 'categories'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user