fix: set project in material request when pull items from bom (#18256)
This commit is contained in:
parent
fca86c48c8
commit
b390b70ee3
@ -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,
|
sum(bom_item.{qty_field}/ifnull(bom.quantity, 1)) * %(qty)s as qty,
|
||||||
item.description,
|
item.description,
|
||||||
item.image,
|
item.image,
|
||||||
|
bom.project,
|
||||||
item.stock_uom,
|
item.stock_uom,
|
||||||
item.allow_alternative_item,
|
item.allow_alternative_item,
|
||||||
item_default.default_warehouse,
|
item_default.default_warehouse,
|
||||||
|
|||||||
@ -211,6 +211,7 @@ frappe.ui.form.on('Material Request', {
|
|||||||
d.stock_uom = item.stock_uom;
|
d.stock_uom = item.stock_uom;
|
||||||
d.conversion_factor = 1;
|
d.conversion_factor = 1;
|
||||||
d.qty = item.qty;
|
d.qty = item.qty;
|
||||||
|
d.project = item.project;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
d.hide();
|
d.hide();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user