Skip to content

Commit

Permalink
fix: variant qty while making work order from BOM (backport #44548) (#…
Browse files Browse the repository at this point in the history
…44550)

fix: variant qty while making work order from BOM (#44548)

(cherry picked from commit 1571dff)

Co-authored-by: rohitwaghchaure <[email protected]>
  • Loading branch information
mergify[bot] and rohitwaghchaure authored Dec 5, 2024
1 parent 68fe3b4 commit e2aedc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/manufacturing/doctype/bom/bom.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,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,
});
Expand Down

0 comments on commit e2aedc8

Please sign in to comment.