From 64dffd6d252711d9abeabadbc3ded9c01ba2f7c5 Mon Sep 17 00:00:00 2001 From: MahanCh Date: Mon, 28 Apr 2025 13:57:24 +0330 Subject: [PATCH] change condition in customize checkout eligible employees --- CompanyManagment.Application/CustomizeCheckoutApplication.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CompanyManagment.Application/CustomizeCheckoutApplication.cs b/CompanyManagment.Application/CustomizeCheckoutApplication.cs index c7a82d33..0c94f1c2 100644 --- a/CompanyManagment.Application/CustomizeCheckoutApplication.cs +++ b/CompanyManagment.Application/CustomizeCheckoutApplication.cs @@ -270,8 +270,8 @@ namespace CompanyManagment.Application var statusesWithActiveLeftWorks = statuses .Where(status => workshopLeftWorksInMonth.Any(leftWork => leftWork.EmployeeId == status.EmployeeId && - leftWork.StartWorkDateGr.Date <= status.StartDateGr.Date && - leftWork.LeftWorkDateGr.Date >= status.EndDateGr.Date)).ToList(); + leftWork.StartWorkDateGr.Date <= status.EndDateGr.Date && + leftWork.LeftWorkDateGr.Date >= status.StartDateGr.Date)).ToList();