From 53208dfb3e67fd18626a447826a3152624c0287f Mon Sep 17 00:00:00 2001 From: Gursheen Anand Date: Mon, 8 Jan 2024 15:50:50 +0530 Subject: [PATCH] fix: fetch name for fy (cherry picked from commit d0ea598cdfb203882fca887d2ba34938c4c75b8e) --- erpnext/accounts/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py index a34282eef1..af1c3c6d10 100644 --- a/erpnext/accounts/utils.py +++ b/erpnext/accounts/utils.py @@ -1268,7 +1268,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()