From 3e914b7b1df68d01c1d7bcc7e54d49fafcbf4bae Mon Sep 17 00:00:00 2001 From: MahanCh Date: Sat, 5 Apr 2025 12:29:29 +0330 Subject: [PATCH] fix add reward bug --- .../Areas/AdminNew/Pages/Company/AndroidApk/Index.cshtml.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ServiceHost/Areas/AdminNew/Pages/Company/AndroidApk/Index.cshtml.cs b/ServiceHost/Areas/AdminNew/Pages/Company/AndroidApk/Index.cshtml.cs index 877c11ea..45df1227 100644 --- a/ServiceHost/Areas/AdminNew/Pages/Company/AndroidApk/Index.cshtml.cs +++ b/ServiceHost/Areas/AdminNew/Pages/Company/AndroidApk/Index.cshtml.cs @@ -95,6 +95,7 @@ namespace ServiceHost.Areas.AdminNew.Pages.Company.AndroidApk // .Where(x => x.WorkshopId == 170 && x.MonthInt == 12 && x.YearInt == 1403); var sinzdahBedarDate = new DateTime(2025, 04, 2); + var chahardah = sinzdahBedarDate.AddDays(1); var workingEmp = _context.LeftWorkList.Where(x => x.WorkshopId == 170 && x.StartWorkDate <= sinzdahBedarDate && x.LeftWorkDate >= sinzdahBedarDate) @@ -119,7 +120,7 @@ namespace ServiceHost.Areas.AdminNew.Pages.Company.AndroidApk .ToList(); var absentEmployeesInChahardah = employeeSettings.Where(x => !_context.RollCalls - .Any(a => a.EmployeeId == x.EmployeeId && a.ShiftDate == sinzdahBedarDate.AddDays(1))) + .Any(a => a.EmployeeId == x.EmployeeId && a.ShiftDate == chahardah)) .ToList(); foreach (var employeeSetting in absentEmployeesInSinzdah)