Merge pull request #7377 from KanchanChauhan/naming-series

[Fix] Naming series issue
This commit is contained in:
Nabin Hait 2017-01-04 15:44:00 +05:30 committed by GitHub
commit 0dab40f4a1

View File

@ -134,7 +134,7 @@ class NamingSeries(Document):
"""get series current"""
if self.prefix:
self.current_value = frappe.db.get_value("Series",
self.prefix.split('.')[0], "current")
self.prefix.split('.')[0], "current", order_by = "name")
def insert_series(self, series):
"""insert series if missing"""