From c69b24c1d2448569794918d61a23bcfdcfd931db Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 1 Apr 2023 07:11:30 +0200 Subject: [PATCH] Fix #7248 --- .../Internal/Support/CreditRecalculateService.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/app/Services/Internal/Support/CreditRecalculateService.php b/app/Services/Internal/Support/CreditRecalculateService.php index 758e49900c..af56aca240 100644 --- a/app/Services/Internal/Support/CreditRecalculateService.php +++ b/app/Services/Internal/Support/CreditRecalculateService.php @@ -86,13 +86,11 @@ class CreditRecalculateService { /** @var TransactionJournal $journal */ foreach ($this->group->transactionJournals as $journal) { - if (0 === count($this->work)) { - try { - $this->findByJournal($journal); - } catch (FireflyException $e) { - Log::error($e->getTraceAsString()); - Log::error(sprintf('Could not find work account for transaction group #%d.', $this->group->id)); - } + try { + $this->findByJournal($journal); + } catch (FireflyException $e) { + Log::error($e->getTraceAsString()); + Log::error(sprintf('Could not find work account for transaction group #%d.', $this->group->id)); } } Log::debug(sprintf('Done with %s', __METHOD__));