fix: get prescribed procedures button not working
This commit is contained in:
parent
217e1b41fb
commit
4d9d51d91c
@ -292,8 +292,12 @@ var get_procedure_prescribed = function(frm){
|
||||
frappe.call({
|
||||
method:"erpnext.healthcare.doctype.patient_appointment.patient_appointment.get_procedure_prescribed",
|
||||
args: {patient: frm.doc.patient},
|
||||
callback: function(r){
|
||||
show_procedure_templates(frm, r.message);
|
||||
callback: function(r) {
|
||||
if (r.message && r.message.length) {
|
||||
show_procedure_templates(frm, r.message);
|
||||
} else {
|
||||
frappe.msgprint(__("No Prescribed Procedures found for the selected patient"));
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user