Merge pull request #32052 from ruthra-kumar/key_error_on_consolidate_financial_report

fix: key error on consolidated financial report
This commit is contained in:
ruthra kumar 2022-09-02 16:13:19 +05:30 committed by GitHub
commit 64f8010a25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -535,7 +535,11 @@ def get_accounts(root_type, companies):
):
if account.account_name not in added_accounts:
accounts.append(account)
added_accounts.append(account.account_name)
if account.account_number:
account_key = account.account_number + "-" + account.account_name
else:
account_key = account.account_name
added_accounts.append(account_key)
return accounts