Fixed a bug where budget chart would come up negative on overspent amounts.

This commit is contained in:
James Cole 2015-10-30 07:16:15 +01:00
parent 2c966a1234
commit 45344ee347

View File

@ -84,7 +84,7 @@ class ChartJsBudgetChartGenerator implements BudgetChartGenerator
$data['labels'][] = $entry[0];
$left[] = round($entry[1], 2);
$spent[] = round($entry[2], 2);
$overspent[] = round(($entry[3] * -1), 2);
$overspent[] = round($entry[3], 2);
}
}