From 1571dff3ef4c89c91e155967c0a187e8f855fe28 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Thu, 5 Dec 2024 15:51:33 +0530 Subject: [PATCH] fix: variant qty while making work order from BOM (#44548) --- erpnext/manufacturing/doctype/bom/bom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/manufacturing/doctype/bom/bom.js b/erpnext/manufacturing/doctype/bom/bom.js index ceb52ee1d33..1db9d937965 100644 --- a/erpnext/manufacturing/doctype/bom/bom.js +++ b/erpnext/manufacturing/doctype/bom/bom.js @@ -412,7 +412,7 @@ frappe.ui.form.on("BOM", { dialog.fields_dict.items.df.data.push({ item_code: d.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, operation: d.operation, });