From 46506abeb8fb67cbb436a36e67e17428c3204e7d Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 15 Dec 2016 09:50:22 +0100 Subject: [PATCH] Forgot to do * -1. [skip ci] --- app/Http/Controllers/Chart/BudgetController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']; }