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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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