Merge pull request #39724 from GursheenK/subscription-failed-msg

fix: message for failed subscription process
This commit is contained in:
Deepesh Garg
2024-03-10 19:33:41 +05:30
committed by GitHub

View File

@@ -594,7 +594,7 @@ class Subscription(Document):
"""
current_invoice = self.get_current_invoice()
if not current_invoice:
frappe.throw(_("Current invoice {0} is missing").format(current_invoice.invoice))
frappe.throw(_("Subscription {0}: Current invoice is missing.").format(frappe.bold(self.name)))
else:
if not self.has_outstanding_invoice():
self.status = "Active"