[tests] fixes to stock entry

This commit is contained in:
Rushabh Mehta 2014-10-07 17:15:30 +05:30
parent b31e90c7a5
commit c62b6a815b

View File

@ -195,7 +195,7 @@ class BuyingController(StockController):
self.round_floats_in(item)
item.conversion_factor = get_conversion_factor(item.item_code, item.uom).get("conversion_factor")
item.conversion_factor = get_conversion_factor(item.item_code, item.uom).get("conversion_factor") or 1.0
qty_in_stock_uom = flt(item.qty * item.conversion_factor)
rm_supp_cost = flt(item.rm_supp_cost) if self.doctype=="Purchase Receipt" else 0.0