From cd3a90049576daccb6527a98c610b6d43091d522 Mon Sep 17 00:00:00 2001 From: Khushi Rawat <142375893+khushi8112@users.noreply.github.com> Date: Mon, 8 Jul 2024 20:48:53 +0530 Subject: [PATCH] fix: added filter to show only submitted assets --- erpnext/assets/doctype/asset_repair/asset_repair.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/erpnext/assets/doctype/asset_repair/asset_repair.js b/erpnext/assets/doctype/asset_repair/asset_repair.js index 489fbaca6b26..9284c86bd92d 100644 --- a/erpnext/assets/doctype/asset_repair/asset_repair.js +++ b/erpnext/assets/doctype/asset_repair/asset_repair.js @@ -20,6 +20,15 @@ frappe.ui.form.on("Asset Repair", { }; }; + frm.set_query("asset", function () { + return { + filters: { + company: frm.doc.company, + docstatus: 1, + }, + }; + }); + frm.set_query("warehouse", "stock_items", function () { return { filters: {