mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 17:04:47 +00:00
fix: Naming Series preview when no previous transaction present
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user