fix- cannot cancel consultation, remove updating age (#13226)

This commit is contained in:
Ranjith Kurungadam 2018-03-08 16:20:22 +05:30 committed by Nabin Hait
parent 1643cce479
commit a3a63177a1

View File

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