Merge pull request #35196 from rohitwaghchaure/fixed-order-of-reposting-entry

fix: pick the in progress reposting entries first
This commit is contained in:
rohitwaghchaure 2023-05-08 09:23:34 +05:30 committed by GitHub
commit 457f7f941c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -353,7 +353,7 @@ def get_repost_item_valuation_entries():
return frappe.db.sql(
""" SELECT name from `tabRepost Item Valuation`
WHERE status in ('Queued', 'In Progress') and creation <= %s and docstatus = 1
ORDER BY timestamp(posting_date, posting_time) asc, creation asc
ORDER BY timestamp(posting_date, posting_time) asc, creation asc, status asc
""",
now(),
as_dict=1,