[fix] [minor] insert cancelled sl entry for serialized inventory and at the end delete

This commit is contained in:
Nabin Hait
2013-08-20 15:37:33 +05:30
parent c13c193bbc
commit 9653f60e89
8 changed files with 76 additions and 54 deletions

View File

@@ -111,7 +111,7 @@ class DocType(SellingController):
def on_cancel(self):
if cint(self.doc.update_stock) == 1:
self.delete_and_repost_sle()
self.update_stock_ledger()
self.update_serial_nos(cancel = True)
sales_com_obj = get_obj(dt = 'Sales Common')