mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-12 11:25:09 +00:00
This commit is contained in:
@@ -264,6 +264,7 @@ frappe.ui.form.on("BOM", {
|
|||||||
reqd: 1,
|
reqd: 1,
|
||||||
default: 1,
|
default: 1,
|
||||||
onchange: () => {
|
onchange: () => {
|
||||||
|
if (!cur_dialog) return;
|
||||||
const { quantity, items: rm } = frm.doc;
|
const { quantity, items: rm } = frm.doc;
|
||||||
const variant_items_map = rm.reduce((acc, item) => {
|
const variant_items_map = rm.reduce((acc, item) => {
|
||||||
acc[item.item_code] = item.qty;
|
acc[item.item_code] = item.qty;
|
||||||
|
|||||||
Reference in New Issue
Block a user