Merge pull request #17845 from fproldan/fix_by_voucher_order

fix: General Ledger Group by Voucher not ordering by posting_date
This commit is contained in:
rohitwaghchaure
2019-07-14 17:24:35 +05:30
committed by GitHub

View File

@@ -10,6 +10,7 @@ from frappe import _, _dict
from erpnext.accounts.utils import get_account_currency
from erpnext.accounts.report.financial_statements import get_cost_centers_with_children
from six import iteritems
from collections import OrderedDict
def execute(filters=None):
if not filters:
@@ -269,7 +270,7 @@ def group_by_field(group_by):
return 'voucher_no'
def initialize_gle_map(gl_entries, filters):
gle_map = frappe._dict()
gle_map = OrderedDict()
group_by = group_by_field(filters.get('group_by'))
for gle in gl_entries: