Fixed missing chart data.

This commit is contained in:
James Cole
2016-12-23 15:52:05 +01:00
parent 315479fcd3
commit cde494d3ef
2 changed files with 3 additions and 3 deletions

View File

@@ -218,7 +218,7 @@ class BudgetReportController extends Controller
/** @var Budget $budget */
foreach ($budgets as $budget) {
$chartData[$budget->id]['entries'][$label] = $expenses[$budget->id] ?? '0';
$chartData[$budget->id]['entries'][$label] = round(($expenses[$budget->id] ?? '0'), 2);
}
$currentStart = clone $currentEnd;
$currentStart->addDay();