Skip to content

Commit

Permalink
fix: do not allow to cancel incomplete reposting (#40224)
Browse files Browse the repository at this point in the history
(cherry picked from commit 72ac56b)

# Conflicts:
#	erpnext/stock/doctype/repost_item_valuation/repost_item_valuation.py
  • Loading branch information
rohitwaghchaure authored and mergify[bot] committed Mar 2, 2024
1 parent d7abb21 commit 5a0b2bf
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ def check_pending_repost_against_cancelled_transaction(self):
if self.status not in ("Queued", "In Progress"):
return

<<<<<<< HEAD
if not (self.voucher_no and self.voucher_no):
return

Expand All @@ -181,6 +182,11 @@ def check_pending_repost_against_cancelled_transaction(self):
msg = _("Cannot cancel as processing of cancelled documents is pending.")
msg += "<br>" + _("Please try again in an hour.")
frappe.throw(msg, title=_("Pending processing"))
=======
msg = _("Cannot cancel as processing of cancelled documents is pending.")
msg += "<br>" + _("Please try again in an hour.")
frappe.throw(msg, title=_("Pending processing"))
>>>>>>> 72ac56b6c4 (fix: do not allow to cancel incomplete reposting (#40224))

@frappe.whitelist()
def restart_reposting(self):
Expand Down

0 comments on commit 5a0b2bf

Please sign in to comment.