From a3a63177a147c5456fee1a2fd5119890541b0f8c Mon Sep 17 00:00:00 2001 From: Ranjith Kurungadam Date: Thu, 8 Mar 2018 16:20:22 +0530 Subject: [PATCH] fix- cannot cancel consultation, remove updating age (#13226) --- erpnext/healthcare/doctype/consultation/consultation.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/erpnext/healthcare/doctype/consultation/consultation.js b/erpnext/healthcare/doctype/consultation/consultation.js index 8ed01c35b8..8b3ecd81b8 100644 --- a/erpnext/healthcare/doctype/consultation/consultation.js +++ b/erpnext/healthcare/doctype/consultation/consultation.js @@ -23,11 +23,6 @@ frappe.ui.form.on('Consultation', { 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); } });