fix: message for subscription when no current inv

This commit is contained in:
Gursheen Anand
2024-02-05 11:05:45 +05:30
parent e49f8d5f55
commit e9c2f6d6f1

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"