Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Experimental fix for issue #109.
James Coleb3333cc2d362
diff --git a/app/Http/Controllers/Chart/CategoryController.php b/app/Http/Controllers/Chart/CategoryController.phpindex 840bc68aed..e95d4ccb38 100644--- a/app/Http/Controllers/Chart/CategoryController.php+++ b/app/Http/Controllers/Chart/CategoryController.php@@ -65,7 +65,7 @@ class CategoryController extends Controllerwhile ($start <= $end) {$currentEnd = Navigation::endOfPeriod($start, $range);- $spent = $repository->balanceInPeriod($category, $start, $currentEnd);+ $spent = $repository->balanceInPeriod($category, $start, $currentEnd, true);$entries->push([clone $start, $spent]);$start = Navigation::addPeriod($start, $range, 0);diff --git a/app/Repositories/Shared/ComponentRepository.php b/app/Repositories/Shared/ComponentRepository.phpindex 584856fa3d..1d879a6b69 100644--- a/app/Repositories/Shared/ComponentRepository.php+++ b/app/Repositories/Shared/ComponentRepository.php@@ -40,7 +40,7 @@ class ComponentRepositoryif ($shared === true) { // shared is true: always ignore transfers between accounts!$sum = $object->transactionjournals()->transactionTypes(['Withdrawal'])->before($end)->after($start)- ->get(['transaction_journals.*'])->sum('amount');+ ->get(['transaction_journals.*'])->sum('actual_amount');} else {// do something else, SEE budgets.// get all journals in this month where the asset account is NOT shared.