fix: Show accounts in financial statements upto level 20 (#23718)

This commit is contained in:
Nabin Hait 2020-10-24 22:00:32 +05:30 committed by GitHub
parent 8be296b343
commit ba1cca6b2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -307,7 +307,7 @@ def get_accounts(company, root_type):
where company=%s and root_type=%s order by lft""", (company, root_type), as_dict=True)
def filter_accounts(accounts, depth=10):
def filter_accounts(accounts, depth=20):
parent_children_map = {}
accounts_by_name = {}
for d in accounts: