mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Chart was negative. [skip ci]
This commit is contained in:
parent
dbe9628cc5
commit
a54a886bf0
@ -354,7 +354,7 @@ class BudgetController extends Controller
|
|||||||
if ($repetitions->count() === 0) {
|
if ($repetitions->count() === 0) {
|
||||||
$spent = $repository->spentInPeriod(new Collection([$budget]), new Collection, $start, $end);
|
$spent = $repository->spentInPeriod(new Collection([$budget]), new Collection, $start, $end);
|
||||||
if (bccomp($spent, '0') !== 0) {
|
if (bccomp($spent, '0') !== 0) {
|
||||||
$return[$budget->name]['spent'] = $spent;
|
$return[$budget->name]['spent'] = bcmul($spent, '-1');
|
||||||
$return[$budget->name]['left'] = 0;
|
$return[$budget->name]['left'] = 0;
|
||||||
$return[$budget->name]['overspent'] = 0;
|
$return[$budget->name]['overspent'] = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user