fix issue : ระบบลา (ขรก.) >> ลาอุปสมบทหรือการลาประกอบพิธีฮัจย์ฯ (ยื่นขอลาได้มากกว่า 1 ครั้ง) #841
This commit is contained in:
parent
db7b45013b
commit
5f12c8279f
1 changed files with 7 additions and 1 deletions
|
|
@ -842,7 +842,13 @@ namespace BMA.EHR.Leave.Service.Controllers
|
|||
isLeave = false;
|
||||
break;
|
||||
case "LV-006":
|
||||
isLeave = totalDay <= 120;
|
||||
// fix issue : ระบบลา (ขรก.) >> ลาอุปสมบทหรือการลาประกอบพิธีฮัจย์ฯ (ยื่นขอลาได้มากกว่า 1 ครั้ง) #841
|
||||
var prevLeave = _context.Set<LeaveRequest>().Where(x => x.LeaveTypeCode == "LV-006").Where(x => x.LeaveStatus == "APPROVE").Count();
|
||||
|
||||
if (prevLeave > 0)
|
||||
isLeave = false;
|
||||
else
|
||||
isLeave = totalDay <= 120;
|
||||
break;
|
||||
case "LV-008":
|
||||
case "LV-009":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue