fixes for inpatient advance

Dev_3.3_InPatient_CR
haroon amjad 2 years ago
parent c5e88ac7ba
commit dac842f50c

@ -338,11 +338,9 @@ class _InPatientServicesHomeState extends State<InPatientServicesHome> {
inPatientAdvanceResponseModel = InPatientAdvanceResponseModel.fromJson(res["responseInpatient"]);
Navigator.push(context, FadePage(page: InPatientAdvancePayment(isHasData: true, inPatientAdvanceResponseModel: inPatientAdvanceResponseModel)));
} else {
// Navigator.push(context, FadePage(page: InPatientAdvancePayment(isHasData: false, inPatientAdvanceResponseModel: inPatientAdvanceResponseModel)));
AppToast.showErrorToast(message: TranslationBase.of(context).noData);
}
} else {
// AppToast.showErrorToast(message: res["ErrorEndUserMessage"]);
Navigator.push(context, FadePage(page: InPatientAdvancePayment(isHasData: false, inPatientAdvanceResponseModel: inPatientAdvanceResponseModel)));
}
}).catchError((err) {

@ -187,12 +187,12 @@ class PaymentService extends StatelessWidget {
if (res["MessageStatus"] == 1) {
if (res['responseInpatient'] != null) {
inPatientAdvanceResponseModel = InPatientAdvanceResponseModel.fromJson(res["responseInpatient"]);
Navigator.push(context, FadePage(page: InPatientAdvancePayment(inPatientAdvanceResponseModel: inPatientAdvanceResponseModel)));
Navigator.push(context, FadePage(page: InPatientAdvancePayment(isHasData: true, inPatientAdvanceResponseModel: inPatientAdvanceResponseModel)));
} else {
AppToast.showErrorToast(message: TranslationBase.of(context).noData);
}
} else {
AppToast.showErrorToast(message: res["endUserMessage"]);
Navigator.push(context, FadePage(page: InPatientAdvancePayment(isHasData: false, inPatientAdvanceResponseModel: inPatientAdvanceResponseModel)));
}
}).catchError((err) {
GifLoaderDialogUtils.hideDialog(context);

Loading…
Cancel
Save