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)); prescriptionReportEnhList.add(PrescriptionReportEnh.fromJson(report));
}); });
print(prescriptionReportEnhList.length); print(prescriptionReportEnhList.length);
if (prescriptionReportEnhList.length != 0) {
navigateToMedicinePrescriptionReport( navigateToMedicinePrescriptionReport(
prescriptionReportEnhList, res['ListPRM']); prescriptionReportEnhList, res['ListPRM']);
} else {
AppToast.showErrorToast(message: "Sorry there is no data");
}
}).catchError((err) { }).catchError((err) {
print(err); print(err);
AppToast.showErrorToast(message: err); AppToast.showErrorToast(message: err);

Loading…
Cancel
Save