Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
I need unit tests again. #109
James Cole3d15a4ca6d7c
diff --git a/app/Http/Controllers/Chart/BudgetController.php b/app/Http/Controllers/Chart/BudgetController.phpindex d5036356d8..b0f3c79f97 100644--- a/app/Http/Controllers/Chart/BudgetController.php+++ b/app/Http/Controllers/Chart/BudgetController.php@@ -156,7 +156,7 @@ class BudgetController extends Controllerforeach ($budgets as $budget) {$repetitions = $repository->getBudgetLimitRepetitions($budget, $start, $end);if ($repetitions->count() == 0) {- $expenses = $repository->balanceInPeriod($budget, $start, $end, true);+ $expenses = $repository->balanceInPeriod($budget, $start, $end, true) * -1;$allEntries->push([$budget->name, 0, 0, $expenses, 0, 0]);continue;}