fix: variant qty while making work order from BOM (#44548)
This commit is contained in:
@@ -412,7 +412,7 @@ frappe.ui.form.on("BOM", {
|
|||||||
dialog.fields_dict.items.df.data.push({
|
dialog.fields_dict.items.df.data.push({
|
||||||
item_code: d.item_code,
|
item_code: d.item_code,
|
||||||
variant_item_code: "",
|
variant_item_code: "",
|
||||||
qty: d.qty,
|
qty: (d.qty / frm.doc.quantity) * (dialog.fields_dict.qty.value || 1),
|
||||||
source_warehouse: d.source_warehouse,
|
source_warehouse: d.source_warehouse,
|
||||||
operation: d.operation,
|
operation: d.operation,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user