diff --git a/lib/models/Clinics/EROnlineCheckInPaymentDetailsResponse.dart b/lib/models/Clinics/EROnlineCheckInPaymentDetailsResponse.dart index 1d4772fe..9cfe88ea 100644 --- a/lib/models/Clinics/EROnlineCheckInPaymentDetailsResponse.dart +++ b/lib/models/Clinics/EROnlineCheckInPaymentDetailsResponse.dart @@ -1,16 +1,16 @@ class EROnlineCheckInPaymentDetailsResponse { - int? cashPrice; - int? cashPriceTax; - int? cashPriceWithTax; + num? cashPrice; + num? cashPriceTax; + num? cashPriceWithTax; int? companyId; String? companyName; - int? companyShareWithTax; + num? companyShareWithTax; dynamic errCode; int? groupID; String? insurancePolicyNo; String? message; String? patientCardID; - double? patientShare; + num? patientShare; double? patientShareWithTax; double? patientTaxAmount; int? policyId; diff --git a/lib/pages/ErService/EROnlineCheckIn/EROnlineCheckInHome.dart b/lib/pages/ErService/EROnlineCheckIn/EROnlineCheckInHome.dart index 17d72248..3f1c3c49 100644 --- a/lib/pages/ErService/EROnlineCheckIn/EROnlineCheckInHome.dart +++ b/lib/pages/ErService/EROnlineCheckIn/EROnlineCheckInHome.dart @@ -395,7 +395,11 @@ class _EROnlineCheckInHomePageState extends State with DoctorsListService service = new DoctorsListService(); service.autoGenerateInvoiceERClinicWithNoPaymentDetails(projectID, true).then((res) { GifLoaderDialogUtils.hideDialog(context); - _showMyDialog("Your online Check-In in the ER clinic has been done successfully.", context); + if(res["MessageStatus"] == 1) { + _showMyDialog("Your online Check-In in the ER clinic has been done successfully.", context); + } else { + AppToast.showErrorToast(message: res["InvoiceResponse"]["Message"]); + } }).catchError((err) { GifLoaderDialogUtils.hideDialog(context); AppToast.showErrorToast(message: err); diff --git a/lib/pages/ErService/EROnlineCheckIn/EROnlineCheckInPaymentDetails.dart b/lib/pages/ErService/EROnlineCheckIn/EROnlineCheckInPaymentDetails.dart index f9e6016b..bffdb91b 100644 --- a/lib/pages/ErService/EROnlineCheckIn/EROnlineCheckInPaymentDetails.dart +++ b/lib/pages/ErService/EROnlineCheckIn/EROnlineCheckInPaymentDetails.dart @@ -483,7 +483,7 @@ class _EROnlineCheckInPaymentDetailsState extends State