From 9890d6a06392dda716d577a5696776b8c88c2c4a Mon Sep 17 00:00:00 2001 From: hussam al-habibeh Date: Sun, 27 Jun 2021 16:52:37 +0300 Subject: [PATCH] using dynimc setup id in medical report service --- .../medical_report/PatientMedicalReportService.dart | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/core/service/patient_medical_file/medical_report/PatientMedicalReportService.dart b/lib/core/service/patient_medical_file/medical_report/PatientMedicalReportService.dart index 68307f70..01a09592 100644 --- a/lib/core/service/patient_medical_file/medical_report/PatientMedicalReportService.dart +++ b/lib/core/service/patient_medical_file/medical_report/PatientMedicalReportService.dart @@ -89,7 +89,11 @@ class PatientMedicalReportService extends BaseService { hasError = false; Map body = Map(); // body['TokenID'] = "@dm!n"; - body['SetupID'] = "91877"; + body['SetupID'] = body.containsKey('SetupID') + ? body['SetupID'] != null + ? body['SetupID'] + : SETUP_ID + : SETUP_ID; body['AdmissionNo'] = int.parse(patient.admissionNo); body['MedicalReportHTML'] = htmlText; if (body['ProjectID'] == null) { @@ -112,7 +116,11 @@ class PatientMedicalReportService extends BaseService { body['LineItemNo'] = limitNumber; body['InvoiceNo'] = invoiceNumber; - body['SetupID'] = "91877"; + body['SetupID'] = body.containsKey('SetupID') + ? body['SetupID'] != null + ? body['SetupID'] + : SETUP_ID + : SETUP_ID; //body['AdmissionNo'] = int.parse(patient.admissionNo); body['MedicalReportHTML'] = htmlText; if (body['ProjectID'] == null) {