commit | 15e8277a46dce00caf53626d31ebbbcaadd0e6be | [log] [tgz] |
---|---|---|
author | Nabin Hait <nabinhait@gmail.com> | Wed Jan 04 16:23:09 2012 +0530 |
committer | Nabin Hait <nabinhait@gmail.com> | Wed Jan 04 16:23:09 2012 +0530 |
tree | 7a555dbefa671891e45505a46bf2ab49e50bf5b4 | |
parent | 9d8e85c1f5f96f1d88c18789c97bbcb54b5f5757 [diff] |
Dont update series starts from if no prefix
diff --git a/erpnext/setup/doctype/naming_series/naming_series.py b/erpnext/setup/doctype/naming_series/naming_series.py index 4b7e741..2ad1236 100644 --- a/erpnext/setup/doctype/naming_series/naming_series.py +++ b/erpnext/setup/doctype/naming_series/naming_series.py
@@ -89,3 +89,5 @@ else: sql("insert into tabSeries (name, current) values (%s,%s)",(cstr(self.doc.prefix),cint(self.doc.starts_from)-1)) msgprint("Series Updated Successfully") + else: + msgprint("Please select prefix first")