commit | 85eeafdccca9e1362895ec865cd8ddc73d3b73db | [log] [tgz] |
---|---|---|
author | Zarrar <zarrar65@gmail.com> | Fri Sep 01 21:45:10 2017 +0530 |
committer | Rushabh Mehta <rmehta@gmail.com> | Fri Sep 01 21:45:10 2017 +0530 |
tree | 0bd80f9cdfc57471eeeaed04c99f422fc0751743 | |
parent | f1881065a854583d2262ad05c3cc6ca3d4d0d47b [diff] |
added filter for grading scale selection (#10639)
diff --git a/erpnext/schools/doctype/assessment_plan/assessment_plan.js b/erpnext/schools/doctype/assessment_plan/assessment_plan.js index be628b8..e83c4d3 100644 --- a/erpnext/schools/doctype/assessment_plan/assessment_plan.js +++ b/erpnext/schools/doctype/assessment_plan/assessment_plan.js
@@ -27,6 +27,14 @@ frappe.set_route("Form", "Assessment Result Tool"); }); } + + frm.set_query('grading_scale', function(){ + return { + filters: { + docstatus: 1 + } + } + }); }, course: function(frm) {
diff --git a/erpnext/schools/doctype/course/course.js b/erpnext/schools/doctype/course/course.js index c667eca..e31ba72 100644 --- a/erpnext/schools/doctype/course/course.js +++ b/erpnext/schools/doctype/course/course.js
@@ -28,4 +28,12 @@ frappe.set_route("List", "Assessment Plan"); }); } + + frm.set_query('default_grading_scale', function(){ + return { + filters: { + docstatus: 1 + } + } + }); }); \ No newline at end of file