This commit is contained in:
parent
c1a0a8c2b5
commit
665e861303
1 changed files with 4 additions and 4 deletions
|
|
@ -440,8 +440,8 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests
|
|||
data.LeaveDirectorComment = Reason;
|
||||
|
||||
// TODO : Update ไปตาราง beginning
|
||||
//if (data.LeaveStatus == "APPROVE")
|
||||
// await _leaveBeginningRepository.UpdateLeaveUsageAsync(data.LeaveStartDate.Year, data.Type.Id, data.KeycloakUserId, -1 * data.LeaveTotal);
|
||||
if (data.ApproveStep == "st4") // ถ้ามีการอนุมัติจากผู้มีอำนาจแล้ว
|
||||
await _leaveBeginningRepository.UpdateLeaveUsageAsync(data.LeaveStartDate.Year, data.Type.Id, data.KeycloakUserId, -1 * data.LeaveTotal);
|
||||
|
||||
// Send Noti
|
||||
var noti = new Notification
|
||||
|
|
@ -484,8 +484,8 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests
|
|||
await UpdateWithTrackingAsync(rawData);
|
||||
|
||||
// TODO : Update ไปตาราง beginning
|
||||
//if (rawData.LeaveStatus == "APPROVE")
|
||||
// await _leaveBeginningRepository.UpdateLeaveUsageAsync(rawData.LeaveStartDate.Year, rawData.Type.Id, rawData.KeycloakUserId, -1 * rawData.LeaveTotal);
|
||||
if (rawData.ApproveStep == "st4") // ถ้ามีการอนุมัติจากผู้มีอำนาจแล้ว
|
||||
await _leaveBeginningRepository.UpdateLeaveUsageAsync(rawData.LeaveStartDate.Year, rawData.Type.Id, rawData.KeycloakUserId, -1 * rawData.LeaveTotal);
|
||||
|
||||
// TODO: remove วันลา
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue