Amount reversal for #129

This commit is contained in:
James Cole 2015-12-12 08:05:10 +01:00
parent fe4f1b306d
commit 041ca8a5d3

View File

@ -647,7 +647,7 @@ class ReportHelper implements ReportHelperInterface
$diffLine->setRole(BalanceLine::ROLE_DIFFROLE);
foreach ($accounts as $account) {
$spent = $this->query->spentNoBudget($account, $start, $end) * -1;
$spent = $this->query->spentNoBudget($account, $start, $end);
$left = $tagRepository->coveredByBalancingActs($account, $start, $end);
bcscale(2);
$diff = bcsub($spent, $left);