From 4a37152aea1a70daf4f262bf88ffd46e537cf32f Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 21 Jan 2024 15:58:40 +0100 Subject: [PATCH] Fix https://github.com/firefly-iii/firefly-iii/issues/8433 --- app/Services/Internal/Support/CreditRecalculateService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); } }