Merge pull request #45725 from karm1000/set_max_date

fix: set max_date range for date of birth to today in employee
This commit is contained in:
ruthra kumar
2025-02-07 16:15:10 +05:30
committed by GitHub

View File

@@ -30,6 +30,11 @@ frappe.ui.form.on("Employee", {
};
});
},
refresh: function (frm) {
frm.fields_dict.date_of_birth.datepicker.update({ maxDate: new Date() });
},
prefered_contact_email: function (frm) {
frm.events.update_contact(frm);
},