From c526a8db47d13bf1ec28b96670e33cbaca6faeec Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 15 Sep 2011 15:38:57 +0530 Subject: [PATCH] check serial nos bin qty only if serial no entered into the document --- stock/doctype/bin/bin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stock/doctype/bin/bin.py b/stock/doctype/bin/bin.py index 65b86867b68..3b71bd00342 100644 --- a/stock/doctype/bin/bin.py +++ b/stock/doctype/bin/bin.py @@ -40,7 +40,7 @@ class DocType: # update valuation for post dated entry - if actual_qty: + if actual_qty and serial_no: # check actual qty with total number of serial no self.check_qty_with_serial_no()