diff --git a/erpnext/healthcare/doctype/patient/patient.js b/erpnext/healthcare/doctype/patient/patient.js index 15e203a824f..49478cc3608 100644 --- a/erpnext/healthcare/doctype/patient/patient.js +++ b/erpnext/healthcare/doctype/patient/patient.js @@ -49,6 +49,7 @@ frappe.ui.form.on('Patient', { if(!frm.doc.dob){ $(frm.fields_dict['age_html'].wrapper).html(''); } + if(frm.doc.dob){ $(frm.fields_dict['age_html'].wrapper).html(`${__('AGE')} : ${get_age(frm.doc.dob)}`); }