Browse Source

active status filter in search

version2
venkataakhil 1 year ago
parent
commit
9ad2de1fd4
  1. 7
      smart_service/phase_2/doctype/repair_service_mapping/repair_service_mapping.js
  2. 7
      smart_service/phase_2/doctype/training_information/training_information.js

7
smart_service/phase_2/doctype/repair_service_mapping/repair_service_mapping.js

@ -14,6 +14,13 @@ frappe.ui.form.on('Repair Service Mapping', {
refresh: function (frm) {
// Set Display Order
set_display_order(frm)
frm.set_query("check_list_name", function() {
return {
"filters": {
"active_status": "Active",
}
};
});
},
validate: function (frm) {
//For Display Order

7
smart_service/phase_2/doctype/training_information/training_information.js

@ -9,6 +9,13 @@ frappe.ui.form.on('Training Information', {
},
refresh: function (frm) {
set_display_order(frm)
frm.set_query("category", function() {
return {
"filters": {
"active_status": "Active",
}
};
});
},
validate:function(frm){
cur_frm.refresh_fields("display_order")

Loading…
Cancel
Save