mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 12:11:19 +00:00
Fix various code.
This commit is contained in:
@@ -44,12 +44,12 @@ class AccountDestroyService
|
||||
// find and delete opening balance journal + opposing account
|
||||
$this->destroyOpeningBalance($account);
|
||||
|
||||
if (null !== $moveTo) {
|
||||
if ($moveTo instanceof Account) {
|
||||
$this->moveTransactions($account, $moveTo);
|
||||
$this->updateRecurrences($account, $moveTo);
|
||||
}
|
||||
// delete recurring transactions with this account:
|
||||
if (null === $moveTo) {
|
||||
if (!$moveTo instanceof Account) {
|
||||
$this->destroyRecurrences($account);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user