mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-21 19:47:48 +00:00
Fix charts. [skip ci]
This commit is contained in:
@@ -112,7 +112,7 @@ class ReportController extends Controller
|
|||||||
$date = $currentStart->format('Y-m');
|
$date = $currentStart->format('Y-m');
|
||||||
$spent = $repository->spentInPeriod($accounts, $currentStart, $currentEnd);
|
$spent = $repository->spentInPeriod($accounts, $currentStart, $currentEnd);
|
||||||
$earned = $repository->earnedInPeriod($accounts, $currentStart, $currentEnd);
|
$earned = $repository->earnedInPeriod($accounts, $currentStart, $currentEnd);
|
||||||
$spentArray[$date] = $spent;
|
$spentArray[$date] = bcmul($spent, '-1');
|
||||||
$earnedArray[$date] = $earned;
|
$earnedArray[$date] = $earned;
|
||||||
$currentStart = Navigation::addPeriod($currentStart, '1M', 0);
|
$currentStart = Navigation::addPeriod($currentStart, '1M', 0);
|
||||||
}
|
}
|
||||||
@@ -163,7 +163,7 @@ class ReportController extends Controller
|
|||||||
$date = $currentStart->format('Y-m');
|
$date = $currentStart->format('Y-m');
|
||||||
$spent = $repository->spentInPeriod($accounts, $currentStart, $currentEnd);
|
$spent = $repository->spentInPeriod($accounts, $currentStart, $currentEnd);
|
||||||
$earned = $repository->earnedInPeriod($accounts, $currentStart, $currentEnd);
|
$earned = $repository->earnedInPeriod($accounts, $currentStart, $currentEnd);
|
||||||
$spentArray[$date] = $spent;
|
$spentArray[$date] = bcmul($spent, '-1');
|
||||||
$earnedArray[$date] = $earned;
|
$earnedArray[$date] = $earned;
|
||||||
$currentStart = Navigation::addPeriod($currentStart, '1M', 0);
|
$currentStart = Navigation::addPeriod($currentStart, '1M', 0);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user