check status retire resign
This commit is contained in:
parent
dc2603d107
commit
87715ff7cc
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue