fix issue : 729

แก้ summary วันลา จากทุกสถานะ มาเป็นแสดงแค่สถานะ "NEW" เท่านั้น
This commit is contained in:
Suphonchai Phoonsawat 2024-12-10 10:11:37 +07:00
parent 40b8c9ce77
commit e00740aa41

View file

@ -631,6 +631,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests
var data = await _dbContext.Set<LeaveRequest>().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