From e190408504d6ffb646f87aba1d9ed7e43e6714fe Mon Sep 17 00:00:00 2001 From: Mahan Ch Date: Thu, 24 Apr 2025 14:49:30 +0330 Subject: [PATCH] Revert "GetEmployeeShiftDateByRollCallStartDate bug fixed" This reverts commit b880721dfad203a77a3792088f9b8cc262075cfe. --- .../RollCallAgg/DomainService/IRollCallDomainService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Company.Domain/RollCallAgg/DomainService/IRollCallDomainService.cs b/Company.Domain/RollCallAgg/DomainService/IRollCallDomainService.cs index 100af86d..0abe6b9b 100644 --- a/Company.Domain/RollCallAgg/DomainService/IRollCallDomainService.cs +++ b/Company.Domain/RollCallAgg/DomainService/IRollCallDomainService.cs @@ -182,7 +182,7 @@ public class RollCallDomainService : IRollCallDomainService return shiftDetails.shiftType switch { WorkshopShiftStatus.Regular => CalculateRegularShiftDate(rollCallStartDate, offset), - WorkshopShiftStatus.Rotating => FindRotatingShift(rollCallStartDate,rollCallEndDate,shiftDetails.rotatingShifts).start.Date, + WorkshopShiftStatus.Rotating => FindRotatingShift(rollCallEndDate,rollCallEndDate,shiftDetails.rotatingShifts).start.Date, WorkshopShiftStatus.Irregular => rollCallStartDate.Date, _ => throw new ArgumentOutOfRangeException() };