Merge branch 'haroon-new-design' into 'development_new_design_2.0'

fixes

See merge request Cloud_Solution/diplomatic-quarter!505
merge-requests/504/merge
haroon amjad 3 years ago
commit 1686c10851

@ -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<String, dynamic> 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;

@ -88,6 +88,7 @@ class _BookConfirmState extends State<BookConfirm> {
null,
widget.doctor.noOfPatientsRate,
"",
),
isNeedToShowButton: false,
),

@ -25,7 +25,7 @@ class ProductNameAndPrice extends StatefulWidget {
AuthenticatedUserObject authenticatedUserObject = locator<AuthenticatedUserObject>();
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<ProductNameAndPrice> {
),
// 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: [

Loading…
Cancel
Save