fix: get item rate in bom

This commit is contained in:
Nabin Hait 2019-02-18 18:55:53 +05:30
parent 982ed555d2
commit 750fe6eaea

View File

@ -183,7 +183,7 @@ class BOM(WebsiteGenerator):
args = frappe._dict({
"doctype": "BOM",
"price_list": self.buying_price_list,
"qty": arg.get("qty"),
"qty": arg.get("qty") or 1,
"uom": arg.get("uom") or arg.get("stock_uom"),
"stock_uom": arg.get("stock_uom"),
"transaction_type": "buying",