This code makes sure the budget report also includes split expenses.

This commit is contained in:
James Cole
2016-11-26 07:09:02 +01:00
parent 8860378757
commit 28f655dba1
5 changed files with 128 additions and 30 deletions

View File

@@ -36,7 +36,7 @@ class BudgetController extends Controller
* @param Carbon $end
* @param Collection $accounts
*
* @return mixed|string
* @return string
*/
public function budgetPeriodReport(BudgetReportHelperInterface $helper, Carbon $start, Carbon $end, Collection $accounts)
{
@@ -46,7 +46,7 @@ class BudgetController extends Controller
$cache->addProperty('budget-period-report');
$cache->addProperty($accounts->pluck('id')->toArray());
if ($cache->has()) {
return $cache->get();
return $cache->get();
}
$periods = Navigation::listOfPeriods($start, $end);