Skip to content

Commit

Permalink
fix(ux): docstatus filter for Reference Name in QI (backport #37024) (
Browse files Browse the repository at this point in the history
#37028)

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

(cherry picked from commit d739ab6)

Co-authored-by: s-aga-r <sagarsharma.s312@gmail.com>
  • Loading branch information
mergify[bot] and s-aga-r authored Sep 11, 2023
1 parent acd9c69 commit 21be889
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 21be889

Please sign in to comment.