mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-29 18:04:46 +00:00
Merge pull request #44590 from frappe/mergify/bp/version-15/pr-44551
fix: variant qty while making work order from BOM (backport #44548) (backport #44551)
This commit is contained in:
@@ -364,7 +364,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