[fix] [minor] stock_entry.py error for None qty

This commit is contained in:
Rushabh Mehta 2015-10-12 16:12:52 +05:30
parent c03cba9d17
commit a30f3ea1f9

View File

@ -102,7 +102,7 @@ class StockEntry(StockController):
if self.difference_account and not item.expense_account:
item.expense_account = self.difference_account
if not item.transfer_qty:
if not item.transfer_qty and item.qty:
item.transfer_qty = item.qty * item.conversion_factor
if (self.purpose in ("Material Transfer", "Material Transfer for Manufacture")