Skip to content

Commit

Permalink
Merge pull request frappe#45914 from rohitwaghchaure/fixed-reposting-…
Browse files Browse the repository at this point in the history
…issue

fix: start reposting button not working
  • Loading branch information
rohitwaghchaure authored Feb 14, 2025
2 parents 60a5f4f + c81ce29 commit 9e4c82e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -481,4 +481,9 @@ def in_configured_timeslot(repost_settings=None, current_time=None):
@frappe.whitelist()
def execute_repost_item_valuation():
"""Execute repost item valuation via scheduler."""
frappe.get_doc("Scheduled Job Type", "repost_item_valuation.repost_entries").enqueue(force=True)
if name := frappe.db.get_value(
"Scheduled Job Type",
{"method": "erpnext.stock.doctype.repost_item_valuation.repost_item_valuation.repost_entries"},
"name",
):
frappe.get_doc("Scheduled Job Type", name).enqueue(force=True)

0 comments on commit 9e4c82e

Please sign in to comment.