mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 00:44:45 +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' """)
|
||||
@@ -220,4 +220,5 @@ patch_list = [
|
||||
"patches.september_2013.p04_unsubmit_serial_nos",
|
||||
"patches.september_2013.p05_fix_customer_in_pos",
|
||||
"patches.october_2013.fix_is_cancelled_in_sle",
|
||||
"patches.october_2013.p01_update_delivery_note_prevdocs",
|
||||
]
|
||||
Reference in New Issue
Block a user