mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 19:59:12 +00:00
fix- cannot cancel consultation, remove updating age (#13226)
This commit is contained in:
committed by
Nabin Hait
parent
1643cce479
commit
a3a63177a1
@@ -23,11 +23,6 @@ frappe.ui.form.on('Consultation', {
|
|||||||
patient: frm.doc.patient
|
patient: frm.doc.patient
|
||||||
},
|
},
|
||||||
callback: function (data) {
|
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);
|
show_details(data.message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user