2013-11-20 12:59:58 +05:30
|
|
|
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
2013-10-03 12:22:52 +05:30
|
|
|
# License: GNU General Public License v3. See license.txt
|
|
|
|
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
import webnotes
|
|
|
|
|
|
|
|
def execute():
|
2013-10-03 18:12:36 +05:30
|
|
|
webnotes.reload_doc("stock", "doctype", "delivery_note_item")
|
2013-10-03 12:22:52 +05:30
|
|
|
webnotes.conn.sql("""update `tabDelivery Note Item` set against_sales_order=prevdoc_docname
|
|
|
|
where prevdoc_doctype='Sales Order' """)
|
|
|
|
|
|
|
|
webnotes.conn.sql("""update `tabDelivery Note Item` set against_sales_invoice=prevdoc_docname
|
|
|
|
where prevdoc_doctype='Sales Invoice' """)
|