2012-07-19 13:40:31 +05:30
|
|
|
from __future__ import unicode_literals
|
2012-05-11 11:11:46 +05:30
|
|
|
def execute():
|
|
|
|
import webnotes
|
|
|
|
sr = webnotes.conn.sql("select max(name) from `tabPage Role`")
|
|
|
|
if sr and sr[0][0].startswith('PR'):
|
2012-05-11 11:47:18 +05:30
|
|
|
webnotes.conn.sql("update tabSeries set current = %s where name = 'PR'", int(sr[0][0][2:]))
|