From 3aa56686960819b97acf821ec4da2b06d941588b Mon Sep 17 00:00:00 2001 From: SamSys Date: Thu, 21 Aug 2025 16:44:51 +0330 Subject: [PATCH] CustomizeCheckout enable or disable on client menu bug fixed --- ServiceHost/Areas/Client/Pages/Index.cshtml.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ServiceHost/Areas/Client/Pages/Index.cshtml.cs b/ServiceHost/Areas/Client/Pages/Index.cshtml.cs index e61508cc..18436670 100644 --- a/ServiceHost/Areas/Client/Pages/Index.cshtml.cs +++ b/ServiceHost/Areas/Client/Pages/Index.cshtml.cs @@ -687,9 +687,16 @@ namespace ServiceHost.Areas.Client.Pages var allServices = _rollCallServiceApplication.GetAllServiceByWorkshopId(workshopId); var hasPreviousService = allServices.Any(); + + var activeService = _rollCallServiceApplication.GetActiveServiceByWorkshopId(workshopId); var hasRollCallService = activeService != null; + bool hasCustomizeCheckout = false; + + if (hasRollCallService) + hasCustomizeCheckout = activeService.HasCustomizeCheckoutService == "true" ? true : false; + bool hasCameraAccount; if (hasRollCallService) { @@ -707,7 +714,8 @@ namespace ServiceHost.Areas.Client.Pages { hasRollCallWorkshopSetting, hasCameraAccount, - hasRollCallService + hasRollCallService, + hasCustomizeCheckout }); }