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

This commit is contained in:
s-aga-r
2023-09-11 18:52:31 +05:30
committed by GitHub
parent ce549ce9b2
commit d739ab6ee3

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: {