Skip to content

Firefly III: a personal finances manager

Forgot to do * -1. [skip ci]

James Cole46506abeb8fb
diff --git a/app/Http/Controllers/Chart/BudgetController.php b/app/Http/Controllers/Chart/BudgetController.php
index 10ffdbf9df..34e0169b6b 100644
--- a/app/Http/Controllers/Chart/BudgetController.php
+++ b/app/Http/Controllers/Chart/BudgetController.php
@@ -211,7 +211,7 @@ class BudgetController extends Controller
// for no budget:
$row = $this->spentInPeriodWithout($start, $end);
if (bccomp($row['spent'], '0') !== 0) {
- $chartData[0]['entries'][$row['name']] = $row['spent'];
+ $chartData[0]['entries'][$row['name']] = bcmul($row['spent'], '-1');
$chartData[1]['entries'][$row['name']] = $row['repetition_left'];
$chartData[2]['entries'][$row['name']] = $row['repetition_overspent'];
}