Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix charts. [skip ci]
James Coleb22dd29835f3
diff --git a/app/Http/Controllers/Chart/ReportController.php b/app/Http/Controllers/Chart/ReportController.phpindex 76f0c8475b..d1d62ba9f5 100644--- a/app/Http/Controllers/Chart/ReportController.php+++ b/app/Http/Controllers/Chart/ReportController.php@@ -112,7 +112,7 @@ class ReportController extends Controller$date = $currentStart->format('Y-m');$spent = $repository->spentInPeriod($accounts, $currentStart, $currentEnd);$earned = $repository->earnedInPeriod($accounts, $currentStart, $currentEnd);- $spentArray[$date] = $spent;+ $spentArray[$date] = bcmul($spent, '-1');$earnedArray[$date] = $earned;$currentStart = Navigation::addPeriod($currentStart, '1M', 0);}@@ -163,7 +163,7 @@ class ReportController extends Controller$date = $currentStart->format('Y-m');$spent = $repository->spentInPeriod($accounts, $currentStart, $currentEnd);$earned = $repository->earnedInPeriod($accounts, $currentStart, $currentEnd);- $spentArray[$date] = $spent;+ $spentArray[$date] = bcmul($spent, '-1');$earnedArray[$date] = $earned;$currentStart = Navigation::addPeriod($currentStart, '1M', 0);}