fix sider
This commit is contained in:
parent
358153b04b
commit
06e99dfe7b
@ -46,11 +46,10 @@ frappe.ui.form.on('Patient', {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onload: function (frm) {
|
onload: function (frm) {
|
||||||
if(!frm.doc.dob){
|
if(!frm.doc.dob) {
|
||||||
$(frm.fields_dict['age_html'].wrapper).html('');
|
$(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)}`);
|
$(frm.fields_dict['age_html'].wrapper).html(`${__('AGE')} : ${get_age(frm.doc.dob)}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user