Update leave summary calculation to use BeginningLeaveDays instead of LeaveDaysUsed #2305
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m12s
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m12s
This commit is contained in:
parent
14fd9d5262
commit
a8271c8d79
1 changed files with 1 additions and 1 deletions
|
|
@ -2511,7 +2511,7 @@ namespace BMA.EHR.Leave.Service.Controllers
|
|||
var leaveSummary = await _leaveRequestRepository.GetSumApproveLeaveTotalByTypeAndRangeForUser(rawData.KeycloakUserId, rawData.Type.Id, startFiscalYear, endFiscalYear);
|
||||
//var leaveSummary = leaveData == null ? 0.0 : leaveData.LeaveDaysUsed;
|
||||
if (leaveData != null)
|
||||
leaveSummary += leaveData.LeaveDaysUsed;
|
||||
leaveSummary += leaveData.BeginningLeaveDays;
|
||||
|
||||
var extendLeave = 0.0;
|
||||
var leaveLimit = (double)rawData.Type.Limit;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue