Skip to content

Commit

Permalink
Merge pull request #40406 from frappe/mergify/bp/version-15-hotfix/pr…
Browse files Browse the repository at this point in the history
…-40403

fix: error message wording (backport #40403)
  • Loading branch information
barredterra authored Mar 12, 2024
2 parents 605132a + 2a40808 commit 0ad203a
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 0ad203a

Please sign in to comment.