From 6ae7f8fe585604f41c16711e29fbeb740f4b0af4 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 15 Sep 2011 15:40:27 +0530 Subject: [PATCH] check serial nos bin qty only if serial no entered into the document --- erpnext/stock/doctype/bin/bin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/bin/bin.py b/erpnext/stock/doctype/bin/bin.py index 65b86867b6..3b71bd0034 100644 --- a/erpnext/stock/doctype/bin/bin.py +++ b/erpnext/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()