diff --git a/lib/config/config.dart b/lib/config/config.dart index cd85700b..fee1b035 100644 --- a/lib/config/config.dart +++ b/lib/config/config.dart @@ -19,8 +19,8 @@ var PACKAGES_ORDERS = '/api/orders'; var PACKAGES_ORDER_HISTORY = '/api/orders/items'; var PACKAGES_TAMARA_OPT = '/api/orders/paymentoptions/tamara'; // var BASE_URL = 'http://10.50.100.198:3334/'; - var BASE_URL = 'https://uat.hmgwebservices.com/'; -// var BASE_URL = 'https://hmgwebservices.com/'; +// var BASE_URL = 'https://uat.hmgwebservices.com/'; +var BASE_URL = 'https://hmgwebservices.com/'; // Pharmacy UAT URLs // var BASE_PHARMACY_URL = 'https://uat.hmgwebservices.com/epharmacy/api/'; diff --git a/lib/pages/medical/my_invoices/my_invoice_page.dart b/lib/pages/medical/my_invoices/my_invoice_page.dart index 820bf355..a39f9d8f 100644 --- a/lib/pages/medical/my_invoices/my_invoice_page.dart +++ b/lib/pages/medical/my_invoices/my_invoice_page.dart @@ -102,7 +102,7 @@ class _MyInvoicesState extends State { doctor.decimalDoctorRate = listDentalAppointments.decimalDoctorRate; doctor.doctorID = listDentalAppointments.doctorID; - myInvoicesService.getDentalAppointmentInvoice(listDentalAppointments.projectID, listDentalAppointments.appointmentNo, context).then((res) { + myInvoicesService.getDentalAppointmentInvoice(listDentalAppointments.projectID, listDentalAppointments.appointmentNo, listDentalAppointments.invoiceNo, context).then((res) { GifLoaderDialogUtils.hideDialog(context); setState(() { if (res['MessageStatus'] == 1) { diff --git a/lib/services/my_invoice_service/my_invoice_services.dart b/lib/services/my_invoice_service/my_invoice_services.dart index c7f957c0..561f0da1 100644 --- a/lib/services/my_invoice_service/my_invoice_services.dart +++ b/lib/services/my_invoice_service/my_invoice_services.dart @@ -47,7 +47,7 @@ class MyInvoicesService extends BaseService { return Future.value(localRes); } - Future getDentalAppointmentInvoice(int projectID, int appoNo, context) async { + Future getDentalAppointmentInvoice(int projectID, int appoNo, int invoiceNo, context) async { Map request; var languageID = await sharedPref.getStringWithDefaultValue(APP_LANGUAGE, 'ar'); @@ -64,6 +64,7 @@ class MyInvoicesService extends BaseService { "PatientID": authUser.patientID, "License": true, "AppointmentNo": appoNo, + "InvoiceNo": invoiceNo, "IsRegistered": true, "ProjectID": projectID, "PatientTypeID": authUser.patientIdentificationType,