ปรับปรุงการคิดวันลา
This commit is contained in:
parent
eba7e0b656
commit
bb637bca36
1 changed files with 2 additions and 1 deletions
|
|
@ -709,7 +709,8 @@ namespace BMA.EHR.Leave.Service.Controllers
|
||||||
isLeave = govAge >= 365;
|
isLeave = govAge >= 365;
|
||||||
break;
|
break;
|
||||||
case "LV-010":
|
case "LV-010":
|
||||||
isLeave = totalDay <= 730;
|
var maxEnd = new DateTime(req.StartLeaveDate.Year + 2, req.StartLeaveDate.Month, req.StartLeaveDate.Day - 1);
|
||||||
|
isLeave = req.EndLeaveDate.Date <= maxEnd;
|
||||||
break;
|
break;
|
||||||
case "LV-011":
|
case "LV-011":
|
||||||
isLeave = totalDay <= 360;
|
isLeave = totalDay <= 360;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue