mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-16 00:37:15 +00:00
sort by name accounts
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):
|
||||
data = []
|
||||
tmpaccnt = sorted(accounts)
|
||||
tmpaccnt = sorted(accounts, key = account: account.name)
|
||||
if not (accounts[0].account_number is None):
|
||||
accounts = tmpaccnt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user