set recurring type as Monthly in all old sales invoice

This commit is contained in:
Nabin Hait 2012-06-17 21:54:50 +05:30
parent 8eadf09e99
commit 3ad3ebdaec

View File

@ -0,0 +1,6 @@
def execute():
import webnotes
from webnotes.modules import reload_doc
reload_doc('accounts', 'doctype', 'sales_invoice')
webnotes.conn.sql("update `tabSales Invoice` set recurring_type = 'Monthly' where ifnull(convert_into_recurring_invoice, 0) = 1")