commit | d739ab6ee3165b0c661086e71ad78aa1c41f58a6 | [log] [tgz] |
---|---|---|
author | s-aga-r <sagarsharma.s312@gmail.com> | Mon Sep 11 18:52:31 2023 +0530 |
committer | GitHub <noreply@github.com> | Mon Sep 11 18:52:31 2023 +0530 |
tree | 893d3630358c3a82afd04f3868b6714aa4ea34ef | |
parent | ce549ce9b27ffb301a6dc1dd7247ac78e2d89807 [diff] |
fix(ux): docstatus filter for `Reference Name` in QI (#37024)
diff --git a/erpnext/stock/doctype/quality_inspection/quality_inspection.js b/erpnext/stock/doctype/quality_inspection/quality_inspection.js index eea2879..05fa232 100644 --- a/erpnext/stock/doctype/quality_inspection/quality_inspection.js +++ b/erpnext/stock/doctype/quality_inspection/quality_inspection.js
@@ -6,6 +6,14 @@ frappe.ui.form.on("Quality Inspection", { setup: function(frm) { + frm.set_query("reference_name", function() { + return { + filters: { + "docstatus": ["!=", 2], + } + } + }); + frm.set_query("batch_no", function() { return { filters: {