Skip to content

Firefly III: a personal finances manager

Fix https://github.com/firefly-iii/firefly-iii/issues/8433

James Cole4a37152aea1a
diff --git a/app/Services/Internal/Support/CreditRecalculateService.php b/app/Services/Internal/Support/CreditRecalculateService.php
index 18ea0c415e..b4123a9a10 100644
--- a/app/Services/Internal/Support/CreditRecalculateService.php
+++ b/app/Services/Internal/Support/CreditRecalculateService.php
@@ -459,6 +459,6 @@ class CreditRecalculateService
*/
private function isTransferOut(string $amount, string $transactionType): bool
{
- return TransactionType::DEPOSIT === $transactionType && -1 === bccomp($amount, '0');
+ return TransactionType::TRANSFER === $transactionType && -1 === bccomp($amount, '0');
}
}