mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-19 01:25:07 +00:00
[fix] naming series patch
This commit is contained in:
@@ -110,7 +110,7 @@ def get_series():
|
||||
return series_to_set
|
||||
|
||||
def get_series_to_preserve(doctype):
|
||||
series_to_preserve = frappe.db.sql_list("""select distinct naming_series from `tab{doctype}`""".format(doctype=doctype))
|
||||
series_to_preserve = frappe.db.sql_list("""select distinct naming_series from `tab{doctype}` where ifnull(naming_series, '') != ''""".format(doctype=doctype))
|
||||
series_to_preserve.sort()
|
||||
return series_to_preserve
|
||||
|
||||
|
||||
Reference in New Issue
Block a user