Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fixed a negative chart.
James Colee12d13c8389c
diff --git a/app/Http/Controllers/Chart/BudgetController.php b/app/Http/Controllers/Chart/BudgetController.phpindex 7e171df804..0e017fd380 100644--- a/app/Http/Controllers/Chart/BudgetController.php+++ b/app/Http/Controllers/Chart/BudgetController.php@@ -68,7 +68,7 @@ class BudgetController extends Controller$end->subDay();$chartDate = clone $end;$chartDate->startOfMonth();- $spent = $repository->balanceInPeriod($budget, $first, $end);+ $spent = $repository->balanceInPeriod($budget, $first, $end) * -1;$entries->push([$chartDate, $spent]);$first = Navigation::addPeriod($first, $range, 0);}