Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
I need unit tests again. #109
James Colea838dc163dcb
diff --git a/app/Http/Controllers/Chart/BudgetController.php b/app/Http/Controllers/Chart/BudgetController.phpindex b0f3c79f97..7e171df804 100644--- a/app/Http/Controllers/Chart/BudgetController.php+++ b/app/Http/Controllers/Chart/BudgetController.php@@ -162,7 +162,7 @@ class BudgetController extends Controller}/** @var LimitRepetition $repetition */foreach ($repetitions as $repetition) {- $expenses = $repository->balanceInPeriod($budget, $repetition->startdate, $repetition->enddate, true);+ $expenses = $repository->balanceInPeriod($budget, $repetition->startdate, $repetition->enddate, true) * -1;// $left can be less than zero.// $overspent can be more than zero ( = overspending)