commit | c526a8db47d13bf1ec28b96670e33cbaca6faeec | [log] [tgz] |
---|---|---|
author | Nabin Hait <nabinhait@gmail.com> | Thu Sep 15 15:38:57 2011 +0530 |
committer | Nabin Hait <nabinhait@gmail.com> | Thu Sep 15 15:38:57 2011 +0530 |
tree | cd1a4aa52b58d2ef361923bd54d0282c290dc0be | |
parent | e31ed38843cb2c1e80a870f4a3c8f148ff6c6812 [diff] |
check serial nos bin qty only if serial no entered into the document
diff --git a/stock/doctype/bin/bin.py b/stock/doctype/bin/bin.py index 65b8686..3b71bd0 100644 --- a/stock/doctype/bin/bin.py +++ b/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()