fix นับจำนวนคนลาในรายงาน

This commit is contained in:
Suphonchai Phoonsawat 2024-01-22 16:15:35 +07:00
parent ffd8974cb6
commit e86c9c5dc1
2 changed files with 19 additions and 20 deletions

View file

@ -1249,29 +1249,28 @@ namespace BMA.EHR.Leave.Service.Controllers
workTotal += 1;
if (timeStamps.IsLocationCheckIn)
wfhTotal += 1;
else
{
if (leaveReq != null)
{
switch (leaveReq.Type.Code.ToUpper())
{
case "LV-001":
case "LV-002":
sickTotal += 1;
break;
case "LV-005":
restTotal += 1;
break;
case "LV-008":
studyTotal += 1;
break;
}
}
}
}
if (leaveReq != null)
{
switch (leaveReq.Type.Code.ToUpper())
{
case "LV-001":
case "LV-002":
sickTotal += 1;
break;
case "LV-005":
restTotal += 1;
break;
case "LV-008":
studyTotal += 1;
break;
}
}
employees.Add(emp);
count++;