diff --git a/accounts/utils.py b/accounts/utils.py index effc906c161..e4d967cf504 100644 --- a/accounts/utils.py +++ b/accounts/utils.py @@ -42,7 +42,7 @@ def get_fiscal_year(date, verbose=1): def validate_fiscal_year(date, fiscal_year, label="Date"): if get_fiscal_year(date)[0] != fiscal_year: - msgprint(("%(label)s '%(posting_date)s': " + _("not within Fiscal Year") + \ + webnotes.msgprint(("%(label)s '%(posting_date)s': " + _("not within Fiscal Year") + \ ": '%(fiscal_year)s'") % { "label": label, "posting_date": formatdate(date),