From 358153b04b81e1fbf3fc92bae06369a31509a7f3 Mon Sep 17 00:00:00 2001 From: David Angulo Date: Tue, 9 Mar 2021 13:19:12 -0600 Subject: [PATCH] fix sider --- erpnext/healthcare/doctype/patient/patient.js | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/healthcare/doctype/patient/patient.js b/erpnext/healthcare/doctype/patient/patient.js index 15e203a824..49478cc360 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)}`); }