From fe0f46c5b3cfd6175872e0764c247beb25e3db4e Mon Sep 17 00:00:00 2001 From: David Angulo Date: Tue, 9 Mar 2021 13:28:08 -0600 Subject: [PATCH] fix sider --- erpnext/healthcare/doctype/patient/patient.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/healthcare/doctype/patient/patient.js b/erpnext/healthcare/doctype/patient/patient.js index ff237d3824..bce42e51d0 100644 --- a/erpnext/healthcare/doctype/patient/patient.js +++ b/erpnext/healthcare/doctype/patient/patient.js @@ -46,10 +46,10 @@ frappe.ui.form.on('Patient', { } }, onload: function (frm) { - if(!frm.doc.dob) { + if (!frm.doc.dob) { $(frm.fields_dict['age_html'].wrapper).html(''); } - if(frm.doc.dob) { + if (frm.doc.dob) { $(frm.fields_dict['age_html'].wrapper).html(`${__('AGE')} : ${get_age(frm.doc.dob)}`); } }