Removed everything pointless from multi year report.

Signed-off-by: James Cole <thegrumpydictator@gmail.com>
This commit is contained in:
James Cole
2016-11-01 19:06:35 +01:00
parent a66990459e
commit 33c0c1bea6
10 changed files with 2 additions and 455 deletions

View File

@@ -245,10 +245,6 @@ class ReportController extends Controller
private function defaultMultiYear(string $reportType, Carbon $start, Carbon $end, Collection $accounts)
{
$budgets = app(BudgetRepositoryInterface::class)->getActiveBudgets();
$categories = app(CategoryRepositoryInterface::class)->getCategories();
$tags = $this->helper->tagReport($start, $end, $accounts);
// and some id's, joined:
$accountIds = [];
/** @var Account $account */
@@ -260,7 +256,7 @@ class ReportController extends Controller
return view(
'reports.default.multi-year',
compact(
'budgets', 'accounts', 'categories', 'start', 'end', 'accountIds', 'reportType', 'tags'
'accounts', 'start', 'end', 'accountIds', 'reportType'
)
);
}
@@ -275,8 +271,6 @@ class ReportController extends Controller
*/
private function defaultYear(string $reportType, Carbon $start, Carbon $end, Collection $accounts)
{
$tags = $this->helper->tagReport($start, $end, $accounts);
Session::flash('gaEventCategory', 'report');
Session::flash('gaEventAction', 'year');
Session::flash('gaEventLabel', $start->format('Y'));
@@ -293,7 +287,7 @@ class ReportController extends Controller
'reports.default.year',
compact(
'start', 'reportType',
'accountIds', 'end', 'tags'
'accountIds', 'end'
)
);
}