From e00740aa41635d6ba659a3092df3d5ed81d30c2e Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Tue, 10 Dec 2024 10:11:37 +0700 Subject: [PATCH] =?UTF-8?q?fix=20issue=20:=20729=20=E0=B9=81=E0=B8=81?= =?UTF-8?q?=E0=B9=89=20summary=20=E0=B8=A7=E0=B8=B1=E0=B8=99=E0=B8=A5?= =?UTF-8?q?=E0=B8=B2=20=E0=B8=88=E0=B8=B2=E0=B8=81=E0=B8=97=E0=B8=B8?= =?UTF-8?q?=E0=B8=81=E0=B8=AA=E0=B8=96=E0=B8=B2=E0=B8=99=E0=B8=B0=20?= =?UTF-8?q?=E0=B8=A1=E0=B8=B2=E0=B9=80=E0=B8=9B=E0=B9=87=E0=B8=99=E0=B9=81?= =?UTF-8?q?=E0=B8=AA=E0=B8=94=E0=B8=87=E0=B9=81=E0=B8=84=E0=B9=88=E0=B8=AA?= =?UTF-8?q?=E0=B8=96=E0=B8=B2=E0=B8=99=E0=B8=B0=20"NEW"=20=E0=B9=80?= =?UTF-8?q?=E0=B8=97=E0=B9=88=E0=B8=B2=E0=B8=99=E0=B8=B1=E0=B9=89=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs index 7ec99c03..42645db8 100644 --- a/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs +++ b/BMA.EHR.Application/Repositories/Leaves/LeaveRequests/LeaveRequestRepository.cs @@ -631,6 +631,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests var data = await _dbContext.Set().AsQueryable().AsNoTracking() .Include(x => x.Type) .Where(x => x.LeaveStartDate.Year == year) + .Where(x => x.LeaveStatus == "NEW") // fix issue : #729 .ToListAsync(); var res = (from d in data