2013-08-20 12:04:46 +05:30
|
|
|
import webnotes
|
|
|
|
def execute():
|
|
|
|
webnotes.reload_doc("stock", "doctype", "stock_ledger_entry")
|
|
|
|
webnotes.reload_doc("stock", "doctype", "serial_no")
|
|
|
|
webnotes.reload_doc("stock", "report", "stock_ledger")
|
|
|
|
|
|
|
|
webnotes.conn.sql("""delete from `tabStock Ledger Entry`
|
2013-08-22 18:25:43 +05:30
|
|
|
where ifnull(is_cancelled, 'No') = 'Yes'""")
|
|
|
|
|
2013-08-23 15:17:36 +05:30
|
|
|
webnotes.reload_doc("accounts", "doctype", "gl_entry")
|
2013-08-22 18:25:43 +05:30
|
|
|
webnotes.conn.sql("""delete from `tabGL Entry` where ifnull(is_cancelled, 'No') = 'Yes'""")
|