Fix a sum for #129

This commit is contained in:
James Cole 2015-12-11 18:52:21 +01:00
parent a0972d99fb
commit fe4f1b306d

View File

@ -113,7 +113,7 @@ class BalanceLine
$start = $this->getRepetition() ? $this->getRepetition()->amount : 0; $start = $this->getRepetition() ? $this->getRepetition()->amount : 0;
/** @var BalanceEntry $balanceEntry */ /** @var BalanceEntry $balanceEntry */
foreach ($this->getBalanceEntries() as $balanceEntry) { foreach ($this->getBalanceEntries() as $balanceEntry) {
$start -= $balanceEntry->getSpent(); $start += $balanceEntry->getSpent();
} }
return $start; return $start;