mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-20 18:54:55 +00:00
fix: error message wording (#40403)
(cherry picked from commit 79a0473705)
This commit is contained in:
@@ -410,11 +410,11 @@ class Subscription(Document):
|
|||||||
# Earlier subscription didn't had any company field
|
# Earlier subscription didn't had any company field
|
||||||
company = self.get("company") or get_default_company()
|
company = self.get("company") or get_default_company()
|
||||||
if not company:
|
if not company:
|
||||||
# fmt: off
|
|
||||||
frappe.throw(
|
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 = frappe.new_doc(self.invoice_document_type)
|
||||||
invoice.company = company
|
invoice.company = company
|
||||||
|
|||||||
Reference in New Issue
Block a user