Patch to set docstatus=2 for purchase returned serial no

This commit is contained in:
Anand Doshi 2012-02-01 11:36:31 +05:30
parent 4f948e03be
commit 3325d0db74
2 changed files with 13 additions and 0 deletions

View 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'""")

View File

@ -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"
},
]