From dc75be8b6c88029260e8101a778cdad44b6a6866 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 24 Apr 2018 17:46:37 +0530 Subject: [PATCH] Show company column in order in consolidated financial statement --- .../consolidated_financial_statement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/report/consolidated_financial_statement/consolidated_financial_statement.py b/erpnext/accounts/report/consolidated_financial_statement/consolidated_financial_statement.py index c53707a76d..0b1fc6da84 100644 --- a/erpnext/accounts/report/consolidated_financial_statement/consolidated_financial_statement.py +++ b/erpnext/accounts/report/consolidated_financial_statement/consolidated_financial_statement.py @@ -265,7 +265,7 @@ def get_subsidiary_companies(company): company, ["lft", "rgt"]) return frappe.db.sql_list("""select name from `tabCompany` - where lft >= {0} and rgt <= {1}""".format(lft, rgt)) + where lft >= {0} and rgt <= {1} order by lft, rgt""".format(lft, rgt)) def get_accounts(root_type, filters): return frappe.db.sql(""" select name, is_group, company,