minor fixes in the assessment result (#11543)
This commit is contained in:
parent
ec8a0a22d7
commit
69be5362a5
@ -32,7 +32,7 @@ frappe.ui.form.on("Assessment Result", {
|
||||
frappe.ui.form.on("Assessment Result Detail", {
|
||||
score: function(frm, cdt, cdn) {
|
||||
var d = locals[cdt][cdn];
|
||||
if (d.score >= d.maximum_score) {
|
||||
if (d.score > d.maximum_score) {
|
||||
frappe.throw(__("Score cannot be greater than Maximum Score"));
|
||||
}
|
||||
else {
|
||||
|
@ -12,10 +12,11 @@ frappe.ui.form.on('Assessment Result Tool', {
|
||||
frm.set_value("student_group", frappe.route_options.student_group);
|
||||
frm.set_value("assessment_plan", frappe.route_options.assessment_plan);
|
||||
frappe.route_options = null;
|
||||
} else {
|
||||
frm.trigger("assessment_plan");
|
||||
}
|
||||
frm.disable_save();
|
||||
frm.page.clear_indicator();
|
||||
frm.trigger("assessment_plan");
|
||||
},
|
||||
|
||||
assessment_plan: function(frm) {
|
||||
|
Loading…
Reference in New Issue
Block a user