From fe4f1b306d775e11440e6854a1ecd9aeeae3e459 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 11 Dec 2015 18:52:21 +0100 Subject: [PATCH] Fix a sum for #129 --- app/Helpers/Collection/BalanceLine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Helpers/Collection/BalanceLine.php b/app/Helpers/Collection/BalanceLine.php index 50b1d6313a..a5e48efae1 100644 --- a/app/Helpers/Collection/BalanceLine.php +++ b/app/Helpers/Collection/BalanceLine.php @@ -113,7 +113,7 @@ class BalanceLine $start = $this->getRepetition() ? $this->getRepetition()->amount : 0; /** @var BalanceEntry $balanceEntry */ foreach ($this->getBalanceEntries() as $balanceEntry) { - $start -= $balanceEntry->getSpent(); + $start += $balanceEntry->getSpent(); } return $start;