From 8ad40389f2367363db8f7036795b40b747920046 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 13 Sep 2015 07:34:58 +0200 Subject: [PATCH] Corrected the field used for bug #109 --- app/Repositories/Shared/ComponentRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Repositories/Shared/ComponentRepository.php b/app/Repositories/Shared/ComponentRepository.php index 1d879a6b69..00096e564f 100644 --- a/app/Repositories/Shared/ComponentRepository.php +++ b/app/Repositories/Shared/ComponentRepository.php @@ -40,7 +40,7 @@ class ComponentRepository if ($shared === true) { // shared is true: always ignore transfers between accounts! $sum = $object->transactionjournals()->transactionTypes(['Withdrawal'])->before($end)->after($start) - ->get(['transaction_journals.*'])->sum('actual_amount'); + ->get(['transaction_journals.*'])->sum('correct_amount'); } else { // do something else, SEE budgets. // get all journals in this month where the asset account is NOT shared.