feat: document naming rule will now use posting date of the document

(cherry picked from commit 22fd1a1cfd)
This commit is contained in:
Mihir Kandoi
2026-01-01 15:11:58 +05:30
committed by Mergify
parent 0a5aac9ce7
commit b03494bb67
2 changed files with 24 additions and 5 deletions

View File

@@ -402,9 +402,10 @@ doc_events = {
}
# function should expect the variable and doc as arguments
naming_series_variables_list = ["FY", "TFY", "ABBR", "MM", "DD", "YY", "YYYY", "JJJ", "WW"]
naming_series_variables = {
"FY": "erpnext.accounts.utils.parse_naming_series_variable",
"ABBR": "erpnext.accounts.utils.parse_naming_series_variable",
variable: "erpnext.accounts.utils.parse_naming_series_variable"
for variable in naming_series_variables_list
}
# On cancel event Payment Entry will be exempted and all linked submittable doctype will get cancelled.