check status retire resign

This commit is contained in:
moss 2025-05-29 10:34:44 +07:00
parent dc2603d107
commit 87715ff7cc

View file

@ -456,7 +456,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
data.Group,
idCancel = data.RetirementResignEmployeeCancels?.Id ?? Guid.Empty,
statusCancel = data.RetirementResignEmployeeCancels?.Status ?? null,
statusMain = data.Status,
statusMain = data.Status == "CANCEL" ? "DONECANCEL" : data.Status,
Docs = retirementResignEmployeeDocs,
};
@ -1114,7 +1114,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
if (updated == null)
return Error(GlobalMessages.RetirementResignEmployeeNotFound, 404);
updated.CancelReason = req.Reason;
if (updated.Status == "DONE")
if (updated.Status == "DONE" || updated.Status == "WAITING")
{
var retirementResignEmployeeCancel = new RetirementResignEmployeeCancel
{