fix: Naming Series preview when no previous transaction present

This commit is contained in:
Gughan Ravikumar 2023-08-15 09:38:29 +05:30 committed by GitHub
parent 89d109e8d2
commit cdf100d552
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1118,7 +1118,7 @@ def parse_naming_series_variable(doc, variable):
else: else:
date = getdate() date = getdate()
company = None company = None
return get_fiscal_year(date=date, company=doc.get("company"))[0] return get_fiscal_year(date=date, company=company)[0]
@frappe.whitelist() @frappe.whitelist()