feat: retrieve employee contact details

(cherry picked from commit a41297d841)
This commit is contained in:
Abdeali Chharchhoda
2025-11-01 19:18:23 +05:30
committed by Mergify
parent f701407e23
commit 94f9f8b30a

View File

@@ -315,6 +315,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] = "";