Skip to content

Commit

Permalink
fix: message for subscription when no current inv
Browse files Browse the repository at this point in the history
  • Loading branch information
GursheenK committed Feb 5, 2024
1 parent e49f8d5 commit e9c2f6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/accounts/doctype/subscription/subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ def process_for_past_due_date(self):
"""
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"
Expand Down

0 comments on commit e9c2f6d

Please sign in to comment.