Merge pull request #334 from nabinhait/hotfix
[fix] [minor] fix in getseries
This commit is contained in:
commit
6dcc4a7cdf
1 changed files with 1 additions and 1 deletions
|
|
@ -588,7 +588,7 @@ def make_autoname(key, doctype=''):
|
|||
def getseries(key, digits, doctype=''):
|
||||
# series created ?
|
||||
current = webnotes.conn.sql("select `current` from `tabSeries` where name=%s for update", key)
|
||||
if current and current[0][0]:
|
||||
if current and current[0][0] is not None:
|
||||
current = current[0][0]
|
||||
# yes, update it
|
||||
webnotes.conn.sql("update tabSeries set current = current+1 where name=%s", key)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue