mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 19:59:12 +00:00
fix: get prescribed procedures button not working
This commit is contained in:
@@ -293,7 +293,11 @@ var get_procedure_prescribed = function(frm){
|
|||||||
method:"erpnext.healthcare.doctype.patient_appointment.patient_appointment.get_procedure_prescribed",
|
method:"erpnext.healthcare.doctype.patient_appointment.patient_appointment.get_procedure_prescribed",
|
||||||
args: {patient: frm.doc.patient},
|
args: {patient: frm.doc.patient},
|
||||||
callback: function(r) {
|
callback: function(r) {
|
||||||
|
if (r.message && r.message.length) {
|
||||||
show_procedure_templates(frm, r.message);
|
show_procedure_templates(frm, r.message);
|
||||||
|
} else {
|
||||||
|
frappe.msgprint(__("No Prescribed Procedures found for the selected patient"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user