fix: set max_date range for date of birth to today in employee

This commit is contained in:
Karm Soni
2025-02-04 19:22:51 +05:30
parent fb285749dd
commit cd87ad0613

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);
},