mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 12:19:12 +00:00
Merge pull request #13252 from achillesrasquinha/py3
sort by name accounts for trial balance.
This commit is contained in:
@@ -175,7 +175,7 @@ def accumulate_values_into_parents(accounts, accounts_by_name):
|
|||||||
|
|
||||||
def prepare_data(accounts, filters, total_row, parent_children_map, company_currency):
|
def prepare_data(accounts, filters, total_row, parent_children_map, company_currency):
|
||||||
data = []
|
data = []
|
||||||
tmpaccnt = sorted(accounts)
|
tmpaccnt = sorted(accounts, key = lambda account: account.name)
|
||||||
if not (accounts[0].account_number is None):
|
if not (accounts[0].account_number is None):
|
||||||
accounts = tmpaccnt
|
accounts = tmpaccnt
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user