mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +00:00
[fix] Trial balance not working (#8937)
This commit is contained in:
committed by
Rushabh Mehta
parent
d144a4c621
commit
177a26849d
@@ -278,7 +278,7 @@ def sort_root_accounts(roots):
|
|||||||
"""Sort root types as Asset, Liability, Equity, Income, Expense"""
|
"""Sort root types as Asset, Liability, Equity, Income, Expense"""
|
||||||
|
|
||||||
def compare_roots(a, b):
|
def compare_roots(a, b):
|
||||||
if re.split('\W+', a.value)[0].isdigit():
|
if a.value and re.split('\W+', a.value)[0].isdigit():
|
||||||
# if chart of accounts is numbered, then sort by number
|
# if chart of accounts is numbered, then sort by number
|
||||||
return cmp(a.value, b.value)
|
return cmp(a.value, b.value)
|
||||||
if a.report_type != b.report_type and a.report_type == "Balance Sheet":
|
if a.report_type != b.report_type and a.report_type == "Balance Sheet":
|
||||||
|
|||||||
Reference in New Issue
Block a user