fix(ux): docstatus filter for Reference Name in QI (backport #37024) (#37028)

fix(ux): docstatus filter for `Reference Name` in QI (#37024)

(cherry picked from commit d739ab6ee3)

Co-authored-by: s-aga-r <sagarsharma.s312@gmail.com>
This commit is contained in:
mergify[bot]
2023-09-11 18:56:20 +05:30
committed by GitHub
parent acd9c69201
commit 21be889a77

View File

@@ -6,6 +6,14 @@ cur_frm.cscript.refresh = cur_frm.cscript.inspection_type;
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: {