diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py index 73e610abb84..550aaef4040 100644 --- a/erpnext/accounts/utils.py +++ b/erpnext/accounts/utils.py @@ -78,9 +78,9 @@ def get_fiscal_years(transaction_date=None, fiscal_year=None, label="Date", verb else: return ((fy.name, fy.year_start_date, fy.year_end_date),) - error_msg = _("""{0} {1} not in any active Fiscal Year""").format(label, formatdate(transaction_date)) + error_msg = _("""{0} {1} is not in any active Fiscal Year""").format(label, formatdate(transaction_date)) if company: - error_msg = _("""{0} for {1}""").format(error_msg, company) + error_msg = _("""{0} for {1}""").format(error_msg, frappe.bold(company)) if verbose==1: frappe.msgprint(error_msg) raise FiscalYearError(error_msg)