Skip to content

Firefly III: a personal finances manager

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

James Cole45344ee3474e
diff --git a/app/Generator/Chart/Budget/ChartJsBudgetChartGenerator.php b/app/Generator/Chart/Budget/ChartJsBudgetChartGenerator.php
index 8cd3c3dac0..d91a293286 100644
--- a/app/Generator/Chart/Budget/ChartJsBudgetChartGenerator.php
+++ b/app/Generator/Chart/Budget/ChartJsBudgetChartGenerator.php
@@ -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);
}
}