Merge pull request #39202 from GursheenK/fiscal-year-naming-keyerror

fix: parse naming series with FY name
This commit is contained in:
Nabin Hait 2024-01-08 21:48:39 +05:30 committed by GitHub
commit 62bbcbc7ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()