From 8818611dbc678809fbf800d86d760fb810faf179 Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Mon, 9 Sep 2024 11:49:11 +0300 Subject: [PATCH] updates --- lib/config/config.dart | 2 +- .../inpatient_pending_advance_payment.dart | 2 +- lib/pages/InPatientServices/inpatient_home.dart | 16 ++++++++++++---- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/lib/config/config.dart b/lib/config/config.dart index eda25558..ab4abe45 100644 --- a/lib/config/config.dart +++ b/lib/config/config.dart @@ -326,7 +326,7 @@ var UPDATE_COVID_QUESTIONNAIRE = 'Services/Doctors.svc/REST/COVID19_Questionnari var CHANNEL = 3; var GENERAL_ID = 'Cs2020@2016\$2958'; var IP_ADDRESS = '10.20.10.20'; -var VERSION_ID = 11.0; +var VERSION_ID = 17.0; var SETUP_ID = '91877'; var LANGUAGE = 2; // var PATIENT_OUT_SA = 0; diff --git a/lib/pages/InPatientServices/components/inpatient_pending_advance_payment.dart b/lib/pages/InPatientServices/components/inpatient_pending_advance_payment.dart index e99742ee..7fa2127a 100644 --- a/lib/pages/InPatientServices/components/inpatient_pending_advance_payment.dart +++ b/lib/pages/InPatientServices/components/inpatient_pending_advance_payment.dart @@ -58,7 +58,7 @@ class _InPatientPendingAdvancePaymentState extends State { if (res["MessageStatus"] == 1) { if (res['responseInpatient'] != null) { inPatientAdvanceResponseModel = InPatientAdvanceResponseModel.fromJson(res["responseInpatient"]); - Navigator.push(context, - FadePage(page: InPatientAdvancePayment(isHasData: inPatientAdvanceResponseModel.responseInpatientAdvanceInfo != null, inPatientAdvanceResponseModel: inPatientAdvanceResponseModel))); + Navigator.push( + context, + FadePage( + page: InPatientAdvancePayment( + isHasData: (inPatientAdvanceResponseModel.responseInpatientAdvanceInfo != null && inPatientAdvanceResponseModel.responseInpatientAdvanceInfo.length != 0), + inPatientAdvanceResponseModel: inPatientAdvanceResponseModel))); } else { AppToast.showErrorToast(message: TranslationBase.of(context).noData); } } else { - Navigator.push(context, - FadePage(page: InPatientAdvancePayment(isHasData: inPatientAdvanceResponseModel.responseInpatientAdvanceInfo != null, inPatientAdvanceResponseModel: inPatientAdvanceResponseModel))); + Navigator.push( + context, + FadePage( + page: InPatientAdvancePayment( + isHasData: (inPatientAdvanceResponseModel.responseInpatientAdvanceInfo != null && inPatientAdvanceResponseModel.responseInpatientAdvanceInfo.length != 0), + inPatientAdvanceResponseModel: inPatientAdvanceResponseModel))); } }).catchError((err) { GifLoaderDialogUtils.hideDialog(context);