fix: set project in material request when pull items from bom (#18256)

This commit is contained in:
rohitwaghchaure 2019-07-11 15:22:03 +05:30 committed by Nabin Hait
parent fca86c48c8
commit b390b70ee3
2 changed files with 2 additions and 0 deletions

View File

@ -594,6 +594,7 @@ def get_bom_items_as_dict(bom, company, qty=1, fetch_exploded=1, fetch_scrap_ite
sum(bom_item.{qty_field}/ifnull(bom.quantity, 1)) * %(qty)s as qty,
item.description,
item.image,
bom.project,
item.stock_uom,
item.allow_alternative_item,
item_default.default_warehouse,

View File

@ -211,6 +211,7 @@ frappe.ui.form.on('Material Request', {
d.stock_uom = item.stock_uom;
d.conversion_factor = 1;
d.qty = item.qty;
d.project = item.project;
});
}
d.hide();