Refactor LeaveReportController and LeaveRequestController to calculate leave days using repository methods #2246 #2247
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 11s
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 11s
This commit is contained in:
parent
2e6a81ff31
commit
982dfc33d1
2 changed files with 13 additions and 4 deletions
|
|
@ -332,7 +332,10 @@ namespace BMA.EHR.Leave.Service.Controllers
|
|||
|
||||
//var sumLeave = await _leaveRequestRepository.GetSumApproveLeaveTotalByTypeAndRangeForUser(data.KeycloakUserId, data.Type.Id, startFiscalYear, endFiscalYear);
|
||||
|
||||
var sumLeave = leaveData == null ? 0.0 : leaveData.LeaveDaysUsed;
|
||||
|
||||
var sumLeave = await _leaveRequestRepository.GetSumApproveLeaveTotalByTypeAndRangeForUser(data.KeycloakUserId, data.Type.Id, startFiscalYear, endFiscalYear);
|
||||
|
||||
//var sumLeave = leaveData == null ? 0.0 : leaveData.LeaveDaysUsed;
|
||||
var leaveLimit = leaveData == null ? 0.0 : leaveData.LeaveDays;
|
||||
var extendLeave = leaveLimit - 10;
|
||||
var Oc = profile.isCommission == false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue