Skip to content

Commit

Permalink
fix: error message wording (#40403)
Browse files Browse the repository at this point in the history
(cherry picked from commit 79a0473)
  • Loading branch information
barredterra authored and mergify[bot] committed Mar 12, 2024
1 parent d6e87f3 commit 2a40808
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions erpnext/accounts/doctype/subscription/subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,11 +410,11 @@ def create_invoice(
# Earlier subscription didn't had any company field
company = self.get("company") or get_default_company()
if not company:
# fmt: off
frappe.throw(
_("Company is mandatory was generating invoice. Please set default company in Global Defaults.")
_(
"Company is mandatory for generating an invoice. Please set a default company in Global Defaults."
)
)
# fmt: on

invoice = frappe.new_doc(self.invoice_document_type)
invoice.company = company
Expand Down

0 comments on commit 2a40808

Please sign in to comment.