ER Online Check-In changes

merge-update-with-lab-changes
haroon amjad 2 years ago
parent 84159656b6
commit 4dc0a3f6c2

@ -1,16 +1,16 @@
class EROnlineCheckInPaymentDetailsResponse { class EROnlineCheckInPaymentDetailsResponse {
int? cashPrice; num? cashPrice;
int? cashPriceTax; num? cashPriceTax;
int? cashPriceWithTax; num? cashPriceWithTax;
int? companyId; int? companyId;
String? companyName; String? companyName;
int? companyShareWithTax; num? companyShareWithTax;
dynamic errCode; dynamic errCode;
int? groupID; int? groupID;
String? insurancePolicyNo; String? insurancePolicyNo;
String? message; String? message;
String? patientCardID; String? patientCardID;
double? patientShare; num? patientShare;
double? patientShareWithTax; double? patientShareWithTax;
double? patientTaxAmount; double? patientTaxAmount;
int? policyId; int? policyId;

@ -395,7 +395,11 @@ class _EROnlineCheckInHomePageState extends State<EROnlineCheckInHomePage> with
DoctorsListService service = new DoctorsListService(); DoctorsListService service = new DoctorsListService();
service.autoGenerateInvoiceERClinicWithNoPaymentDetails(projectID, true).then((res) { service.autoGenerateInvoiceERClinicWithNoPaymentDetails(projectID, true).then((res) {
GifLoaderDialogUtils.hideDialog(context); 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) { }).catchError((err) {
GifLoaderDialogUtils.hideDialog(context); GifLoaderDialogUtils.hideDialog(context);
AppToast.showErrorToast(message: err); AppToast.showErrorToast(message: err);

@ -483,7 +483,7 @@ class _EROnlineCheckInPaymentDetailsState extends State<EROnlineCheckInPaymentDe
// ER_InsertEROnlinePaymentDetails(payment_res, appo); // ER_InsertEROnlinePaymentDetails(payment_res, appo);
}).catchError((err) { }).catchError((err) {
GifLoaderDialogUtils.hideDialog(context); GifLoaderDialogUtils.hideDialog(context);
AppToast.showErrorToast(message: err); AppToast.showErrorToast(message: err.toString());
print(err); print(err);
}); });
} }
@ -576,8 +576,8 @@ class _EROnlineCheckInPaymentDetailsState extends State<EROnlineCheckInPaymentDe
GifLoaderDialogUtils.hideDialog(context); GifLoaderDialogUtils.hideDialog(context);
setState(() {}); setState(() {});
}).catchError((err) { }).catchError((err) {
AppToast.showErrorToast(message: err.toString());
GifLoaderDialogUtils.hideDialog(context); GifLoaderDialogUtils.hideDialog(context);
AppToast.showErrorToast(message: err.toString());
}); });
} }

@ -1785,7 +1785,7 @@ class DoctorsListService extends BaseService {
localRes = response; localRes = response;
}, onFailure: (String error, int statusCode) { }, onFailure: (String error, int statusCode) {
throw error; throw error;
}, body: request); }, body: request, isAllowAny: true);
return Future.value(localRes); return Future.value(localRes);
} }

Loading…
Cancel
Save