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 {
public EmployeeSubStatus endSubStatus(EmployeeSubStatus subStatus){
EmployeeSubStatus currentSubStatus = getCurrentSubStatus(subStatus.getEmployeeID());
if(currentSubStatus!=null){
subStatus.setToDate(MyTeamDateUtils.getDayLessThanDate(new Date()));
updateExistingEmplyeeSubStatus(subStatus);
currentSubStatus.setToDate(MyTeamDateUtils.getDayLessThanDate(new Date()));
updateExistingEmplyeeSubStatus(currentSubStatus);
}
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