Removed duplicate code.

This commit is contained in:
James Cole
2016-11-16 20:59:21 +01:00
parent 4ef324cf24
commit 757662ca4b
2 changed files with 44 additions and 64 deletions

View File

@@ -64,6 +64,7 @@ class MonthReportGenerator extends Support implements ReportGeneratorInterface
$categorySummary = $this->getCategorySummary();
$averageExpenses = $this->getAverageExpenses();
// render!
return view('reports.category.month', compact('accountIds', 'categoryIds', 'reportType', 'accountSummary', 'categorySummary','averageExpenses'))
->with('start', $this->start)->with('end', $this->end)