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:
@@ -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);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user