Fix for left unbalanced field in report.

This commit is contained in:
James Cole 2015-12-14 12:35:52 +01:00
parent be056cea6b
commit 93244c1f78

View File

@ -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;