Update trial_balance.py

Fix to order only if account starts with Number ... while for others not required....
This commit is contained in:
Helkyd 2018-02-01 15:53:30 +00:00 committed by GitHub
parent 441032d39c
commit b258686b00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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