mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 14:50:32 +00:00
fix: Edit account with parent_account_id.
This commit is contained in:
@@ -221,7 +221,7 @@ export default class AccountsService {
|
|||||||
}
|
}
|
||||||
if (accountDTO.parentAccountId) {
|
if (accountDTO.parentAccountId) {
|
||||||
const parentAccount = await this.getParentAccountOrThrowError(
|
const parentAccount = await this.getParentAccountOrThrowError(
|
||||||
accountDTO.parentAccountId, oldAccount.id,
|
tenantId, accountDTO.parentAccountId, oldAccount.id,
|
||||||
);
|
);
|
||||||
this.throwErrorIfParentHasDiffType(accountDTO, parentAccount);
|
this.throwErrorIfParentHasDiffType(accountDTO, parentAccount);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user