Browse Source
Merge pull request #28145 from deepeshgarg007/coa_import_is_group
fix: COA importer importing all accounts as group
develop
Deepesh Garg
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
erpnext/accounts/doctype/account/chart_of_accounts/chart_of_accounts.py
|
|
@ -81,7 +81,7 @@ def add_suffix_if_duplicate(account_name, account_number, accounts): |
|
|
|
def identify_is_group(child): |
|
|
|
if child.get("is_group"): |
|
|
|
is_group = child.get("is_group") |
|
|
|
elif len(set(child.keys()) - set(["account_type", "root_type", "is_group", "tax_rate", "account_number"])): |
|
|
|
elif len(set(child.keys()) - set(["account_name", "account_type", "root_type", "is_group", "tax_rate", "account_number"])): |
|
|
|
is_group = 1 |
|
|
|
else: |
|
|
|
is_group = 0 |
|
|
|