mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
@@ -263,7 +263,7 @@ def sales_invoice_validate(doc):
|
|||||||
doc.company_fiscal_code = frappe.get_cached_value("Company", doc.company, "fiscal_code")
|
doc.company_fiscal_code = frappe.get_cached_value("Company", doc.company, "fiscal_code")
|
||||||
if not doc.company_tax_id or not doc.company_fiscal_code:
|
if not doc.company_tax_id or not doc.company_fiscal_code:
|
||||||
frappe.throw(
|
frappe.throw(
|
||||||
_(f"Please set both the Tax ID and Fiscal Code on Company {doc.company}"),
|
_("Please set both the Tax ID and Fiscal Code on Company {0}").format(doc.company),
|
||||||
title=_("E-Invoicing Information Missing"),
|
title=_("E-Invoicing Information Missing"),
|
||||||
)
|
)
|
||||||
# Validate customer details
|
# Validate customer details
|
||||||
|
|||||||
Reference in New Issue
Block a user