From b258686b004c9e2a122af2777ace1ef5a8cfd53e Mon Sep 17 00:00:00 2001 From: Helkyd Date: Thu, 1 Feb 2018 15:53:30 +0000 Subject: [PATCH] Update trial_balance.py Fix to order only if account starts with Number ... while for others not required.... --- erpnext/accounts/report/trial_balance/trial_balance.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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