Commit 4ce23797 authored by Md Suleman's avatar Md Suleman

modified sub status service for ending substatus

parent 0310f4ea
...@@ -59,8 +59,8 @@ public class SubStatusService implements ISubStatusService { ...@@ -59,8 +59,8 @@ public class SubStatusService implements ISubStatusService {
public EmployeeSubStatus endSubStatus(EmployeeSubStatus subStatus){ public EmployeeSubStatus endSubStatus(EmployeeSubStatus subStatus){
EmployeeSubStatus currentSubStatus = getCurrentSubStatus(subStatus.getEmployeeID()); EmployeeSubStatus currentSubStatus = getCurrentSubStatus(subStatus.getEmployeeID());
if(currentSubStatus!=null){ if(currentSubStatus!=null){
subStatus.setToDate(MyTeamDateUtils.getDayLessThanDate(new Date())); currentSubStatus.setToDate(MyTeamDateUtils.getDayLessThanDate(new Date()));
updateExistingEmplyeeSubStatus(subStatus); updateExistingEmplyeeSubStatus(currentSubStatus);
} }
return null; return null;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment