From 98281341b99ccb5e210e7cf18b18743b2373b5db Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 4 Jul 2023 22:46:00 +0530 Subject: [PATCH] fix: handle loan_repayment's posting_date datetime in bank_clearance_summary report (backport #36004) (#36005) * fix: handle loan_repayment's posting_date datetime in bank_clearance_summary report (#36004) (cherry picked from commit 937e1fb0245af291789ccd88f168d0402d9a00d8) # Conflicts: # erpnext/accounts/report/bank_clearance_summary/bank_clearance_summary.py * chore: resolving conflicts --------- Co-authored-by: Anand Baburajan --- .../report/bank_clearance_summary/bank_clearance_summary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/report/bank_clearance_summary/bank_clearance_summary.py b/erpnext/accounts/report/bank_clearance_summary/bank_clearance_summary.py index e3127b346f..7e0bdea80c 100644 --- a/erpnext/accounts/report/bank_clearance_summary/bank_clearance_summary.py +++ b/erpnext/accounts/report/bank_clearance_summary/bank_clearance_summary.py @@ -73,7 +73,7 @@ def get_entries(filters): return sorted( entries, - key=lambda k: k[2] or getdate(nowdate()), + key=lambda k: k[2].strftime("%H%M%S") or getdate(nowdate()), )