Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Better cache control.
James Colece3e9ffd111d
diff --git a/app/Http/Controllers/Chart/ReportController.php b/app/Http/Controllers/Chart/ReportController.phpindex 659be0fa76..14482cda59 100644--- a/app/Http/Controllers/Chart/ReportController.php+++ b/app/Http/Controllers/Chart/ReportController.php@@ -49,6 +49,7 @@ class ReportController extends Controller$cache = new CacheProperties;$cache->addProperty('yearInOut');$cache->addProperty($start);+ $cache->addProperty($accounts);$cache->addProperty($end);if ($cache->has()) {return Response::json($cache->get()); // @codeCoverageIgnore@@ -61,6 +62,7 @@ class ReportController extends Controller// total income and total expenses:$incomeSum = $query->incomeInPeriodCorrectedForList($start, $month, $accounts)->sum('amount_positive');$expenseSum = $query->expenseInPeriodCorrectedForList($start, $month, $accounts)->sum('amount_positive');+$entries->push([clone $start, $incomeSum, $expenseSum]);$start->addMonth();