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 b398cc6 commit 4f40877
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,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 @@ -227,6 +228,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 4f40877

Please sign in to comment.