commit | 6ae7f8fe585604f41c16711e29fbeb740f4b0af4 | [log] [tgz] |
---|---|---|
author | Nabin Hait <nabinhait@gmail.com> | Thu Sep 15 15:40:27 2011 +0530 |
committer | Nabin Hait <nabinhait@gmail.com> | Thu Sep 15 15:40:27 2011 +0530 |
tree | 35ed7dc173f7dd2ef3dfd83e46e49d10497808cb | |
parent | 3b19f6b7c899b3e59a9d3c40dbb39c07f7ebff4e [diff] |
check serial nos bin qty only if serial no entered into the document
diff --git a/erpnext/stock/doctype/bin/bin.py b/erpnext/stock/doctype/bin/bin.py index 65b8686..3b71bd0 100644 --- a/erpnext/stock/doctype/bin/bin.py +++ b/erpnext/stock/doctype/bin/bin.py
@@ -40,7 +40,7 @@ # 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()