add some code
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m50s
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m50s
This commit is contained in:
parent
8950073485
commit
057b51390e
1 changed files with 3 additions and 0 deletions
|
|
@ -676,6 +676,9 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests
|
|||
thisYear = thisYear + 1;
|
||||
}
|
||||
await _leaveBeginningRepository.UpdateLeaveUsageAsync(thisYear, data.Type.Id, data.KeycloakUserId, -1 * data.LeaveTotal);
|
||||
// update leave count ลดลง 1 ครั้ง
|
||||
await _leaveBeginningRepository.UpdateLeaveCountAsync(thisYear, data.Type.Id, data.KeycloakUserId, -1);
|
||||
|
||||
|
||||
var _baseAPI = _configuration["API"];
|
||||
var apiUrlSalary = $"{_baseAPI}/org/profile/leave/cancel/{data.Id}";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue