From 93244c1f785e6d1a1360ee459a6d8f7db694f639 Mon Sep 17 00:00:00 2001 From: James Cole Date: Mon, 14 Dec 2015 12:35:52 +0100 Subject: [PATCH] Fix for left unbalanced field in report. --- app/Helpers/Report/ReportHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Helpers/Report/ReportHelper.php b/app/Helpers/Report/ReportHelper.php index 1fc82f9af5..d26ee7512b 100644 --- a/app/Helpers/Report/ReportHelper.php +++ b/app/Helpers/Report/ReportHelper.php @@ -332,7 +332,7 @@ class ReportHelper implements ReportHelperInterface $spent = $this->query->spentNoBudget($account, $start, $end); $left = $tagRepository->coveredByBalancingActs($account, $start, $end); bcscale(2); - $diff = bcsub($spent, $left); + $diff = bcadd($spent, $left); // budget $budgetEntry = new BalanceEntry;