fix sider

This commit is contained in:
David Angulo
2021-03-09 13:28:08 -06:00
committed by GitHub
parent 06e99dfe7b
commit fe0f46c5b3

View File

@@ -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)}`);
}
}