Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: General Ledger Group by Voucher not ordering by posting_date for develop #18023

Merged
merged 7 commits into from Jul 14, 2019
3 changes: 2 additions & 1 deletion erpnext/accounts/report/general_ledger/general_ledger.py
Expand Up @@ -11,6 +11,7 @@
from erpnext.accounts.report.financial_statements import get_cost_centers_with_children
from six import iteritems
from erpnext.accounts.doctype.accounting_dimension.accounting_dimension import get_accounting_dimensions
from collections import OrderedDict

def execute(filters=None):
if not filters:
Expand Down Expand Up @@ -274,7 +275,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:
Expand Down