Merge pull request #40405 from frappe/mergify/bp/version-14-hotfix/pr-40403

fix: error message wording (backport #40403)
This commit is contained in:
Raffael Meyer
2024-03-12 14:33:59 +01:00
committed by GitHub

View File

@@ -349,7 +349,9 @@ class Subscription(Document):
company = self.get("company") or get_default_company()
if not company:
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."
)
)
invoice.company = company