mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 03:09:09 +00:00
fixes in cform
This commit is contained in:
6
patches/march_2013/p01_c_form.py
Normal file
6
patches/march_2013/p01_c_form.py
Normal 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])
|
||||
@@ -204,4 +204,5 @@ patch_list = [
|
||||
"patches.march_2013.update_po_prevdoc_doctype",
|
||||
"patches.february_2013.p09_timesheets",
|
||||
"execute:(not webnotes.conn.exists('UOM', 'Hour')) and webnotes.doc({'uom_name': 'Hour', 'doctype': 'UOM', 'name': 'Hour'}).insert()",
|
||||
"patches.march_2013.p01_c_form"
|
||||
]
|
||||
Reference in New Issue
Block a user