Browse Source

Merge pull request #2868 from nabinhait/fix1

fix in financial statements
develop
Nabin Hait 10 years ago
parent
commit
690f8b9323
  1. 3
      erpnext/accounts/report/financial_statements.py

3
erpnext/accounts/report/financial_statements.py

@ -161,7 +161,8 @@ def add_total_row(out, balance_must_be, period_list):
def get_accounts(company, root_type):
# root lft, rgt
root_account = frappe.db.sql("""select lft, rgt from `tabAccount`
where company=%s and root_type=%s order by lft limit 1""",
where company=%s and root_type=%s and ifnull(parent_account, '') = ''
order by lft limit 1""",
(company, root_type), as_dict=True)
if not root_account:

Loading…
Cancel
Save