mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 15:09:20 +00:00
Merge pull request #36231 from frappe/mergify/bp/version-14-hotfix/pr-36229
fix: FY in naming series variable for orders (backport #36229)
This commit is contained in:
@@ -1108,7 +1108,8 @@ def get_autoname_with_number(number_value, doc_title, company):
|
|||||||
|
|
||||||
def parse_naming_series_variable(doc, variable):
|
def parse_naming_series_variable(doc, variable):
|
||||||
if variable == "FY":
|
if variable == "FY":
|
||||||
return get_fiscal_year(date=doc.get("posting_date"), company=doc.get("company"))[0]
|
date = doc.get("posting_date") or doc.get("transaction_date") or getdate()
|
||||||
|
return get_fiscal_year(date=date, company=doc.get("company"))[0]
|
||||||
|
|
||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
|
|||||||
Reference in New Issue
Block a user