Skip to content

Commit

Permalink
fix(ux): docstatus filter for Reference Name in QI (#37024)
Browse files Browse the repository at this point in the history
(cherry picked from commit d739ab6)
  • Loading branch information
s-aga-r authored and mergify[bot] committed Sep 11, 2023
1 parent acd9c69 commit 2b9c1b6
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 2b9c1b6

Please sign in to comment.