brotherton-erpnext/erpnext/patches/august_2013/p05_update_serial_no_status.py
2013-12-11 10:43:52 +05:30

5 lines
233 B
Python

import webnotes
def execute():
webnotes.conn.sql("""update `tabSerial No` set status = 'Not Available' where status='Not In Store'""")
webnotes.conn.sql("""update `tabSerial No` set status = 'Available' where status='In Store'""")