Patch to set docstatus=2 for purchase returned serial no
This commit is contained in:
parent
4f948e03be
commit
3325d0db74
8
erpnext/patches/jan_mar_2012/cancel_purchase_returned.py
Normal file
8
erpnext/patches/jan_mar_2012/cancel_purchase_returned.py
Normal file
@ -0,0 +1,8 @@
|
||||
def execute():
|
||||
"""
|
||||
Set docstatus = 2 where status = 'Purchase Returned' for serial no
|
||||
"""
|
||||
import webnotes
|
||||
webnotes.conn.sql("""\
|
||||
UPDATE `tabSerial No` SET docstatus=2
|
||||
WHERE status='Purchase Returned'""")
|
@ -55,4 +55,9 @@ patch_list = [
|
||||
'patch_file': 'serial_no_add_opt',
|
||||
'description': "Add option 'Purchase Returned' to Serial No status field"
|
||||
},
|
||||
{
|
||||
'patch_module': 'patches.jan_mar_2012',
|
||||
'patch_file': 'cancel_purchase_returned',
|
||||
'description': "Set docstatus = 2 where status = 'Purchase Returned' for serial no"
|
||||
},
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user