From 12903b11ed8fc834f301e262dc4b686f5df548c3 Mon Sep 17 00:00:00 2001 From: Kavin <78342682+kavin0411@users.noreply.github.com> Date: Thu, 30 Oct 2025 18:16:11 +0530 Subject: [PATCH] fix(pos): order pos invoices by timestamp --- erpnext/accounts/doctype/pos_closing_entry/pos_closing_entry.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/accounts/doctype/pos_closing_entry/pos_closing_entry.py b/erpnext/accounts/doctype/pos_closing_entry/pos_closing_entry.py index 4fa8317ff76..2a6dc4d291a 100644 --- a/erpnext/accounts/doctype/pos_closing_entry/pos_closing_entry.py +++ b/erpnext/accounts/doctype/pos_closing_entry/pos_closing_entry.py @@ -161,6 +161,8 @@ def get_pos_invoices(start, end, pos_profile, user): `tabPOS Invoice` where owner = %s and docstatus = 1 and pos_profile = %s and ifnull(consolidated_invoice,'') = '' + order by + timestamp """, (user, pos_profile), as_dict=1,