fix: conversion factor for BOM exploded item rate

This commit is contained in:
Rucha Mahabal 2020-08-25 17:13:05 +05:30
parent f6b4eb27ab
commit d43d1408cf

View File

@ -494,7 +494,7 @@ class BOM(WebsiteGenerator):
'image' : d.image,
'stock_uom' : d.stock_uom,
'stock_qty' : flt(d.stock_qty),
'rate' : flt(d.base_rate) / flt(d.conversion_factor),
'rate' : flt(d.base_rate) / (flt(d.conversion_factor) or 1.0),
'include_item_in_manufacturing': d.include_item_in_manufacturing
}))