Commit 8a8b4903 authored by rbonthala-nisum-com's avatar rbonthala-nisum-com Committed by tdutta-nisum-com

Changes add to capture exit date (#104)

parent d40b50fc
......@@ -102,4 +102,7 @@ public class EmployeeRoles implements Serializable {
@ExcelCellName("Last Modified")
private Date lastModifiedOn;
@ExcelCellName("Exit Date")
private Date endDate;
}
......@@ -213,6 +213,9 @@ public class UserServiceImpl implements UserService {
update.set("hasB1", employeeRoles.getHasB1());
update.set("passportExpiryDate", employeeRoles.getPassportExpiryDate());
update.set("b1ExpiryDate", employeeRoles.getB1ExpiryDate());
if(employeeRoles.getEmpStatus().equalsIgnoreCase(MyTimeUtils.IN_ACTIVE_SPACE)) {
update.set("endDate", employeeRoles.getEndDate());
}
// update employee location
if (employeeRoles.getEmpLocation() != null
&& !employeeRoles.getEmpLocation().equals("")) {
......
......@@ -52,6 +52,7 @@ public class MyTimeUtils {
public static final String DELIVERY_MANAGERS = "deliveryManagers";
public static final String ACTIVE = "Active";
public static final String IN_ACTIVE = "InActive";
public static final String IN_ACTIVE_SPACE = "In Active";
public final static String TEAMDETAILS_COLLECTION_NAME = "TeamDetails";
public final static String BILLINGDETAILS_COLLECTION_NAME = "BillingDetails";
public final static String ENDDATE_COLUMN = "endDate";
......
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