diff --git a/erpnext/accounts/report/trial_balance/trial_balance.py b/erpnext/accounts/report/trial_balance/trial_balance.py index 09b43c1bc9..f484111be3 100644 --- a/erpnext/accounts/report/trial_balance/trial_balance.py +++ b/erpnext/accounts/report/trial_balance/trial_balance.py @@ -176,7 +176,8 @@ def accumulate_values_into_parents(accounts, accounts_by_name): def prepare_data(accounts, filters, total_row, parent_children_map, company_currency): data = [] tmpaccnt = sorted(accounts) - accounts = tmpaccnt + if accounts[0].account_name[0].isnumeric(): + accounts = tmpaccnt for d in accounts: has_value = False