fix(pos): order pos invoices by timestamp

This commit is contained in:
Kavin
2025-10-30 18:16:11 +05:30
parent 7658076070
commit 12903b11ed

View File

@@ -161,6 +161,8 @@ def get_pos_invoices(start, end, pos_profile, user):
`tabPOS Invoice` `tabPOS Invoice`
where where
owner = %s and docstatus = 1 and pos_profile = %s and ifnull(consolidated_invoice,'') = '' owner = %s and docstatus = 1 and pos_profile = %s and ifnull(consolidated_invoice,'') = ''
order by
timestamp
""", """,
(user, pos_profile), (user, pos_profile),
as_dict=1, as_dict=1,