From 289e74fd0ad384411c703de5f6ba911925d1f0b6 Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Wed, 10 Nov 2021 16:02:41 +0300 Subject: [PATCH] fixes --- lib/core/service/medical/prescriptions_service.dart | 3 +-- lib/pages/BookAppointment/BookConfirm.dart | 1 + .../screens/product-details/product-name-and-price.dart | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/core/service/medical/prescriptions_service.dart b/lib/core/service/medical/prescriptions_service.dart index 4349f218..0a7d9e68 100644 --- a/lib/core/service/medical/prescriptions_service.dart +++ b/lib/core/service/medical/prescriptions_service.dart @@ -225,13 +225,12 @@ class PrescriptionsService extends BaseService { }, body: _requestPrescriptionReportEnh.toJson()); } - Future updatePressOrderRC({@required int presOrderID, @required String patientID}) async { + Future updatePressOrderRC({@required int presOrderID}) async { hasError = false; Map body = Map(); body['Id'] = presOrderID; body['StatusId'] = 6; body['ClickButton'] = 14; - body['PatientID'] = patientID; await baseAppClient.post(UPDATE_PRESCRIPTION_ORDER_RC, onSuccess: (dynamic response, int statusCode) {}, onFailure: (String error, int statusCode) { hasError = true; super.error = error; diff --git a/lib/pages/BookAppointment/BookConfirm.dart b/lib/pages/BookAppointment/BookConfirm.dart index 585e862d..bdf387d6 100644 --- a/lib/pages/BookAppointment/BookConfirm.dart +++ b/lib/pages/BookAppointment/BookConfirm.dart @@ -88,6 +88,7 @@ class _BookConfirmState extends State { null, widget.doctor.noOfPatientsRate, "", + ), isNeedToShowButton: false, ), diff --git a/lib/pages/pharmacies/screens/product-details/product-name-and-price.dart b/lib/pages/pharmacies/screens/product-details/product-name-and-price.dart index 78a9a88e..0f25b236 100644 --- a/lib/pages/pharmacies/screens/product-details/product-name-and-price.dart +++ b/lib/pages/pharmacies/screens/product-details/product-name-and-price.dart @@ -25,7 +25,7 @@ class ProductNameAndPrice extends StatefulWidget { AuthenticatedUserObject authenticatedUserObject = locator(); ProductNameAndPrice(this.context, this.item, - {this.customerId, this.isInWishList, this.notifyMeWhenAvailable, this.addToWishlistFunction, this.deleteFromWishlistFunction, this.isStockAvailable, this.stockAvailability}); + {this.customerId, this.isInWishList, this.notifyMeWhenAvailable, this.addToWishlistFunction, this.deleteFromWishlistFunction, this.isStockAvailable = true, this.stockAvailability}); @override _ProductNameAndPriceState createState() => _ProductNameAndPriceState(); @@ -56,7 +56,7 @@ class _ProductNameAndPriceState extends State { ), // SizedBox(width: 20), if (widget.authenticatedUserObject.isLogin) - widget.isStockAvailable && widget.customerId != null + !widget.isStockAvailable && widget.customerId != null ? InkWell( onTap: () => widget.notifyMeWhenAvailable(context, widget.item.id), child: Row(children: [