Merge pull request #39220 from frappe/mergify/bp/version-15-hotfix/pr-39202

fix: parse naming series with FY name (backport #39202)
This commit is contained in:
Nabin Hait 2024-01-11 18:24:34 +05:30 committed by GitHub
commit b748095589
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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