feat: retrieve employee contact details

This commit is contained in:
Abdeali Chharchhoda
2025-11-01 19:18:23 +05:30
parent 4ad1474e32
commit a41297d841

View File

@@ -314,6 +314,16 @@ erpnext.utils.get_contact_details = function (frm) {
}
};
erpnext.utils.get_employee_contact_details = async function (employee) {
if (!employee) return;
const response = await frappe.xcall("erpnext.setup.doctype.employee.employee.get_contact_details", {
employee,
});
return response?.message;
};
erpnext.utils.validate_mandatory = function (frm, label, value, trigger_on) {
if (!value) {
frm.doc[trigger_on] = "";