From 972f659fd53ef474f0474e6c51091bc8f3d12ca4 Mon Sep 17 00:00:00 2001 From: Aditya Hase Date: Mon, 7 Jan 2019 21:50:04 +0530 Subject: [PATCH] fix(naming): Use creation instead of name to order GL Entries --- erpnext/accounts/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py index d3566feaa9..2a80305fb4 100644 --- a/erpnext/accounts/utils.py +++ b/erpnext/accounts/utils.py @@ -655,7 +655,7 @@ def get_outstanding_invoices(party_type, party, account, condition=None): or (voucher_type not in ('Journal Entry', 'Payment Entry'))) group by voucher_type, voucher_no having (invoice_amount - payment_amount) > 0.005 - order by posting_date, name""".format( + order by posting_date, creation""".format( dr_or_cr=dr_or_cr, invoice = invoice, payment_dr_or_cr=payment_dr_or_cr,