From e65d0ec0f8552634b4b60ef57918d9df9f366994 Mon Sep 17 00:00:00 2001 From: "Fatimah.Alshammari" Date: Mon, 26 Oct 2026 10:15:05 +0300 Subject: [PATCH] fixed select item and add more than one services in appointment --- .../appoinments/add_new_service_appointment_page.dart | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/views/appoinments/add_new_service_appointment_page.dart b/lib/views/appoinments/add_new_service_appointment_page.dart index a864ede..c6e8cb0 100644 --- a/lib/views/appoinments/add_new_service_appointment_page.dart +++ b/lib/views/appoinments/add_new_service_appointment_page.dart @@ -44,8 +44,7 @@ class _AddNewServiceAppointmentPageState final List appointmentSelectedServices = []; ServiceVM? serviceVM; bool isSubmitting = false; - - // Keep the existing Custom Service currency dropdown unchanged. + DropValue? selectedCurrency; final List currencies = [ DropValue(1, 'SAR', 'SAR'), @@ -108,7 +107,6 @@ class _AddNewServiceAppointmentPageState Map postParams; if (vm.customServiceEnabledStatus) { - // Original Custom Service behavior, intentionally unchanged. if (!vm.isCustomServiceDetailValidated()) return; postParams = { 'providerBranchID': widget.appointmentListModel.branchId, @@ -150,9 +148,6 @@ class _AddNewServiceAppointmentPageState await _updateAppointment(context, widget.appointmentListModel.branchId ?? 0); if (!mounted) return; Utils.showToast(LocaleKeys.itemsAddedSuccessfully.tr()); - // Return to the previous page after the successful API call. - // Original code popped twice; confirm whether your navigation stack - // still needs a second pop before adding it here. pop(context); } else { Utils.showToast(res.message.toString());