Update ExpenseSummary.php

This commit is contained in:
sausin 2018-12-14 20:00:01 +05:30 committed by GitHub
parent d1fd63e308
commit 9f81918e4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,9 +51,10 @@ class ExpenseSummary extends Controller
// Dates
for ($j = 1; $j <= 12; $j++) {
$ym_string = is_array($year) ? $financial_start->addMonth()->format('Y-m') : $year . '-' . $j;
$dates[$j] = Date::parse($ym_string)->format('F');
$expenses_graph[Date::parse($year . '-' . $j)->format('F-Y')] = 0;
$expenses_graph[Date::parse($ym_string)->format('F-Y')] = 0;
// Totals
$totals[$dates[$j]] = array(