mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
Some code cleanup and a better chart [skip ci]
This commit is contained in:
@@ -118,8 +118,8 @@ class ReportController extends Controller
|
||||
while ($currentStart <= $end) {
|
||||
$currentEnd = Navigation::endOfPeriod($currentStart, '1M');
|
||||
$date = $currentStart->format('Y-m');
|
||||
$spent = $repository->spentInPeriod($accounts, $currentStart, $currentEnd);
|
||||
$earned = $repository->earnedInPeriod($accounts, $currentStart, $currentEnd);
|
||||
$spent = $repository->expensesInPeriod($accounts, $currentStart, $currentEnd);
|
||||
$earned = $repository->incomesInPeriod($accounts, $currentStart, $currentEnd);
|
||||
$spentArray[$date] = bcmul($spent, '-1');
|
||||
$earnedArray[$date] = $earned;
|
||||
$currentStart = Navigation::addPeriod($currentStart, '1M', 0);
|
||||
|
Reference in New Issue
Block a user