mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-22 19:55:29 +00:00
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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user