Minor fix
diff --git a/erpnext/stock/utils.py b/erpnext/stock/utils.py
index b444e84..889c30c 100644
--- a/erpnext/stock/utils.py
+++ b/erpnext/stock/utils.py
@@ -100,7 +100,7 @@
"""get FIFO (average) Rate from Queue"""
if qty >= 0:
total = sum(f[0] for f in previous_stock_queue)
- return total and sum(f[0] * f[1] for f in previous_stock_queue) / flt(total) or 0.0
+ return sum(flt(f[0]) * flt(f[1]) for f in previous_stock_queue) / flt(total) if total else 0.0
else:
available_qty_for_outgoing, outgoing_cost = 0, 0
qty_to_pop = abs(qty)