Skip to content

Commit

Permalink
Merge pull request #35196 from rohitwaghchaure/fixed-order-of-reposti…
Browse files Browse the repository at this point in the history
…ng-entry

fix: pick the in progress reposting entries first
  • Loading branch information
rohitwaghchaure authored May 8, 2023
2 parents c3ca5d0 + 40e3747 commit 457f7f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 457f7f9

Please sign in to comment.