mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fixed a negative chart.
This commit is contained in:
parent
fcc3af6136
commit
e12d13c838
@ -68,7 +68,7 @@ class BudgetController extends Controller
|
|||||||
$end->subDay();
|
$end->subDay();
|
||||||
$chartDate = clone $end;
|
$chartDate = clone $end;
|
||||||
$chartDate->startOfMonth();
|
$chartDate->startOfMonth();
|
||||||
$spent = $repository->balanceInPeriod($budget, $first, $end);
|
$spent = $repository->balanceInPeriod($budget, $first, $end) * -1;
|
||||||
$entries->push([$chartDate, $spent]);
|
$entries->push([$chartDate, $spent]);
|
||||||
$first = Navigation::addPeriod($first, $range, 0);
|
$first = Navigation::addPeriod($first, $range, 0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user