mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 17:04:47 +00:00
fix: get prescribed procedures button not working
This commit is contained in:
@@ -292,8 +292,12 @@ var get_procedure_prescribed = function(frm){
|
|||||||
frappe.call({
|
frappe.call({
|
||||||
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) {
|
||||||
show_procedure_templates(frm, r.message);
|
if (r.message && r.message.length) {
|
||||||
|
show_procedure_templates(frm, r.message);
|
||||||
|
} else {
|
||||||
|
frappe.msgprint(__("No Prescribed Procedures found for the selected patient"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user