This commit is contained in:
parent
10571679f1
commit
05e56ff6f7
1 changed files with 2 additions and 1 deletions
|
|
@ -440,7 +440,8 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests
|
||||||
data.LeaveDirectorComment = Reason;
|
data.LeaveDirectorComment = Reason;
|
||||||
|
|
||||||
// TODO : Update ไปตาราง beginning
|
// TODO : Update ไปตาราง beginning
|
||||||
await _leaveBeginningRepository.UpdateLeaveUsageAsync(data.LeaveStartDate.Year, data.Type.Id, data.KeycloakUserId, -1 * data.LeaveTotal);
|
if (data.LeaveStatus == "APPROVE")
|
||||||
|
await _leaveBeginningRepository.UpdateLeaveUsageAsync(data.LeaveStartDate.Year, data.Type.Id, data.KeycloakUserId, -1 * data.LeaveTotal);
|
||||||
|
|
||||||
// Send Noti
|
// Send Noti
|
||||||
var noti = new Notification
|
var noti = new Notification
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue