mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 04:09:11 +00:00
[Delivery Note] Moved prevdoc to Sales Order and Sales Invoice so links will work webnotes/erpnext#868
This commit is contained in:
12
patches/october_2013/p01_update_delivery_note_prevdocs.py
Normal file
12
patches/october_2013/p01_update_delivery_note_prevdocs.py
Normal file
@@ -0,0 +1,12 @@
|
||||
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
|
||||
# License: GNU General Public License v3. See license.txt
|
||||
|
||||
from __future__ import unicode_literals
|
||||
import webnotes
|
||||
|
||||
def execute():
|
||||
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' """)
|
||||
Reference in New Issue
Block a user