mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 16:45:02 +00:00
set recurring type as Monthly in all old sales invoice
This commit is contained in:
6
erpnext/patches/june_2012/set_recurring_type.py
Normal file
6
erpnext/patches/june_2012/set_recurring_type.py
Normal 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")
|
||||
Reference in New Issue
Block a user