diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py index f9208f051e..25fbe170b8 100644 --- a/erpnext/accounts/utils.py +++ b/erpnext/accounts/utils.py @@ -1280,7 +1280,7 @@ def parse_naming_series_variable(doc, variable): else: date = getdate() company = None - return get_fiscal_year(date=date, company=company)[0] + return get_fiscal_year(date=date, company=company).name @frappe.whitelist()