Skip to content

Firefly III: a personal finances manager

Corrected the field used for bug #109

James Cole8ad40389f236
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.