mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 16:45:02 +00:00
fix sider
This commit is contained in:
@@ -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)}`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user