fix- cannot cancel consultation, remove updating age (#13226)
diff --git a/erpnext/healthcare/doctype/consultation/consultation.js b/erpnext/healthcare/doctype/consultation/consultation.js
index 8ed01c3..8b3ecd8 100644
--- a/erpnext/healthcare/doctype/consultation/consultation.js
+++ b/erpnext/healthcare/doctype/consultation/consultation.js
@@ -23,11 +23,6 @@
patient: frm.doc.patient
},
callback: function (data) {
- var age = null;
- if(data.message.dob){
- age = calculate_age(data.message.dob);
- }
- frappe.model.set_value(frm.doctype,frm.docname, "patient_age", age);
show_details(data.message);
}
});