fixes in cform

This commit is contained in:
Anand Doshi
2013-03-04 17:48:31 +05:30
parent 986d48b424
commit 9bba9ed4d2
3 changed files with 22 additions and 6 deletions

View File

@@ -0,0 +1,6 @@
import webnotes
def execute():
for cform in webnotes.conn.sql("""select name from `tabC-Form` where docstatus=2"""):
webnotes.conn.sql("""update `tabSales Invoice` set c_form_no=null
where c_form_no=%s""", cform[0])