This commit is contained in:
James Cole 2023-04-01 07:11:30 +02:00
parent d50c560ed2
commit c69b24c1d2
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

@ -86,13 +86,11 @@ class CreditRecalculateService
{ {
/** @var TransactionJournal $journal */ /** @var TransactionJournal $journal */
foreach ($this->group->transactionJournals as $journal) { foreach ($this->group->transactionJournals as $journal) {
if (0 === count($this->work)) { try {
try { $this->findByJournal($journal);
$this->findByJournal($journal); } catch (FireflyException $e) {
} catch (FireflyException $e) { Log::error($e->getTraceAsString());
Log::error($e->getTraceAsString()); Log::error(sprintf('Could not find work account for transaction group #%d.', $this->group->id));
Log::error(sprintf('Could not find work account for transaction group #%d.', $this->group->id));
}
} }
} }
Log::debug(sprintf('Done with %s', __METHOD__)); Log::debug(sprintf('Done with %s', __METHOD__));