diff --git a/erpnext/compliance/doctype/waste_disposal/waste_disposal.js b/erpnext/compliance/doctype/waste_disposal/waste_disposal.js index aeff4b0497f0..1ae7f9298faa 100644 --- a/erpnext/compliance/doctype/waste_disposal/waste_disposal.js +++ b/erpnext/compliance/doctype/waste_disposal/waste_disposal.js @@ -57,6 +57,12 @@ frappe.ui.form.on("Waste Disposal", { }); }, + s_warehouse: function(frm) { + for (let row of frm.doc.items) { + frappe.model.set_value(row.doctype, row.name, "warehouse", frm.doc.s_warehouse); + } + }, + get_items: function (frm) { frappe.prompt({ label: "Warehouse",