fix issue : ระบบลา (ขรก.) >> ลากิจส่วนตัว (กรณียื่นขอลาเกิน 45 วัน/ปี) #829

This commit is contained in:
Suphonchai Phoonsawat 2024-12-10 13:38:44 +07:00
parent 00568ad943
commit 2bc134298f

View file

@ -817,7 +817,12 @@ namespace BMA.EHR.Leave.Service.Controllers
isLeave = true;
break;
case "LV-002":
isLeave = true;
// fix issue : ระบบลา (ขรก.) >> ลากิจส่วนตัว (กรณียื่นขอลาเกิน 45 วัน/ปี) #829
if (govAge <= 365)
isLeave = (totalDay - (sumWorkDay + sumWeekend) + sumApproveLeave) <= 15;
else
isLeave = (totalDay - (sumWorkDay + sumWeekend) + sumApproveLeave) <= 45;
//isLeave = true;
break;
case "LV-007":
isLeave = true;