ER Online Check-In changes

dev_3.13.6_Development
haroon amjad 1 year ago
parent 84159656b6
commit 4dc0a3f6c2

@ -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;

@ -395,7 +395,11 @@ class _EROnlineCheckInHomePageState extends State<EROnlineCheckInHomePage> 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);

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

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

Loading…
Cancel
Save