fix : Student Admission accepting end date less than start date. #20625
This commit is contained in:
parent
2090d113e5
commit
86ecaa59ca
@ -11,5 +11,12 @@ frappe.ui.form.on('Student Admission', {
|
|||||||
|
|
||||||
academic_year: function(frm) {
|
academic_year: function(frm) {
|
||||||
frm.trigger("program");
|
frm.trigger("program");
|
||||||
|
},
|
||||||
|
|
||||||
|
admission_end_date: function(frm) {
|
||||||
|
if(frm.doc.admission_end_date && frm.doc.admission_end_date <= frm.doc.admission_start_date){
|
||||||
|
frm.set_value("admission_end_date", "");
|
||||||
|
frappe.throw(__("Admission End Date should be greater than Admission Start Date."));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user