appointment details scenarios handled

merge-requests/34/merge
haroon amjad 5 years ago
parent 7972d01dff
commit 3b881f1ab3

@ -380,8 +380,12 @@ class _AppointmentActionsState extends State<AppointmentActions> {
prescriptionReportEnhList.add(PrescriptionReportEnh.fromJson(report));
});
print(prescriptionReportEnhList.length);
if (prescriptionReportEnhList.length != 0) {
navigateToMedicinePrescriptionReport(
prescriptionReportEnhList, res['ListPRM']);
} else {
AppToast.showErrorToast(message: "Sorry there is no data");
}
}).catchError((err) {
print(err);
AppToast.showErrorToast(message: err);

Loading…
Cancel
Save