mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-03 12:47:17 -06:00
Amount reversal for #129
This commit is contained in:
parent
fe4f1b306d
commit
041ca8a5d3
@ -647,7 +647,7 @@ class ReportHelper implements ReportHelperInterface
|
|||||||
$diffLine->setRole(BalanceLine::ROLE_DIFFROLE);
|
$diffLine->setRole(BalanceLine::ROLE_DIFFROLE);
|
||||||
|
|
||||||
foreach ($accounts as $account) {
|
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);
|
$left = $tagRepository->coveredByBalancingActs($account, $start, $end);
|
||||||
bcscale(2);
|
bcscale(2);
|
||||||
$diff = bcsub($spent, $left);
|
$diff = bcsub($spent, $left);
|
||||||
|
Loading…
Reference in New Issue
Block a user