This commit is contained in:
James Cole 2023-10-11 07:42:38 +02:00
parent 289ccc7d89
commit 1966e12703
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

@ -100,9 +100,11 @@ class AccountDestroyService
$ibAccount->delete();
}
$journal = TransactionJournal::find($journalId);
/** @var JournalDestroyService $service */
$service = app(JournalDestroyService::class);
$service->destroy($journal);
if (null !== $journal) {
/** @var JournalDestroyService $service */
$service = app(JournalDestroyService::class);
$service->destroy($journal);
}
}
}