From 05aa3b391e47047c69fea3f75ccd25cc0331f7d6 Mon Sep 17 00:00:00 2001 From: RicardoJohann Date: Wed, 20 Jan 2016 13:38:20 +0800 Subject: [PATCH] Update bank_reconciliation.py --- .../accounts/doctype/bank_reconciliation/bank_reconciliation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/bank_reconciliation/bank_reconciliation.py b/erpnext/accounts/doctype/bank_reconciliation/bank_reconciliation.py index 3c280bd2dd..d72008183d 100644 --- a/erpnext/accounts/doctype/bank_reconciliation/bank_reconciliation.py +++ b/erpnext/accounts/doctype/bank_reconciliation/bank_reconciliation.py @@ -26,7 +26,7 @@ class BankReconciliation(Document): t2.parent = t1.name and t2.account = %s and t1.posting_date >= %s and t1.posting_date <= %s and t1.docstatus=1 and ifnull(t1.is_opening, 'No') = 'No' %s - order by t1.posting_date""" % + order by t1.posting_date DESC, t1.name DESC""" % ('%s', '%s', '%s', condition), (self.bank_account, self.from_date, self.to_date), as_dict=1) self.set('journal_entries', [])