mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +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):
|
def prepare_data(accounts, filters, total_row, parent_children_map, company_currency):
|
||||||
data = []
|
data = []
|
||||||
tmpaccnt = sorted(accounts)
|
tmpaccnt = sorted(accounts, key = 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