Merge pull request #20401 from deepeshgarg007/general_ledger_sort

fix: Order GL entries by creation time in General ledger
This commit is contained in:
Deepesh Garg 2020-01-24 13:19:39 +05:30 committed by GitHub
commit 60e8d52f32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,7 +119,7 @@ def get_gl_entries(filters):
select_fields = """, debit, credit, debit_in_account_currency,
credit_in_account_currency """
order_by_statement = "order by posting_date, account"
order_by_statement = "order by posting_date, account, creation"
if filters.get("group_by") == _("Group by Voucher"):
order_by_statement = "order by posting_date, voucher_type, voucher_no"