From dee254805b7e1f477e59c399654ac3ad9b2caa6a Mon Sep 17 00:00:00 2001 From: hrwx Date: Wed, 12 May 2021 11:22:49 +0530 Subject: [PATCH] fix: set/reset value of source warehouse --- erpnext/compliance/doctype/waste_disposal/waste_disposal.js | 6 ++++++ 1 file changed, 6 insertions(+) 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",