commit | 4f948e03be94767ebc74b17c7b853aa12e383d43 | [log] [tgz] |
---|---|---|
author | Anand Doshi <anand@iwebnotes.com> | Wed Feb 01 11:27:36 2012 +0530 |
committer | Anand Doshi <anand@iwebnotes.com> | Wed Feb 01 11:27:36 2012 +0530 |
tree | 8b44caee521a68438aebbfb77ba0b198b6fcc19a | |
parent | 6afc6818a34151c8f29447226701c9847707bdfa [diff] |
Set docstatus as 2 for a purchase returned serial no
diff --git a/erpnext/stock/doctype/stock_entry/stock_entry.py b/erpnext/stock/doctype/stock_entry/stock_entry.py index be37880..1a3e783 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.py +++ b/erpnext/stock/doctype/stock_entry/stock_entry.py
@@ -438,6 +438,7 @@ #delete_doc("Serial No", serial_no) serial_doc = Document("Serial No", serial_no) serial_doc.status = 'Purchase Returned' + serial_doc.docstatus = 2 serial_doc.save()