Commit fd47236e authored by BH04921's avatar BH04921

MT-72_Commited_changes_on_review_comments.

parent aa1fb2a5
......@@ -190,9 +190,8 @@ public class ProjectServiceImpl implements ProjectService {
for (ProjectTeamMate pteamMate : activeBenchProject) {
Date d = pT.getStartDate() != null ? pT.getStartDate()
: new Date();
d.setDate(d.getDate() - 1);
pteamMate.setActive(false);
pteamMate.setEndDate(d);
pteamMate.setEndDate(DateUtils.truncate(DateUtils.addDays(d, -1), Calendar.DATE));
projectTeamMatesRepo.save(pteamMate);
}
}
......
......@@ -254,9 +254,6 @@ myApp.controller("projectTeamController",function($scope, myFactory, $mdDialog,
};
function deleteUserRole(empId, projectId,id){
var record = {"id":id,"employeeId":empId,"projectId":projectId};
var req = {
method : 'POST',
......@@ -297,7 +294,6 @@ myApp.controller("projectTeamController",function($scope, myFactory, $mdDialog,
}
function AddProjectTeamController($scope, $mdDialog, dataToPass, gridOptionsData,employees) {
console.log("data",dataToPass, gridOptionsData,employees);
$scope.templateTitle = dataToPass.action;
$scope.alertMsg = "";
$scope.isDisabled = false;
......@@ -731,7 +727,6 @@ myApp.controller("projectTeamController",function($scope, myFactory, $mdDialog,
}
function addOrUpdateRole(record, action){
console.log("record",record);
var urlRequest = "";
if(action == "Add"){
urlRequest = appConfig.appUri+ "projectTeam/addEmployeeToTeam";
......@@ -751,7 +746,6 @@ myApp.controller("projectTeamController",function($scope, myFactory, $mdDialog,
$scope.objectId = response.data.id;
}, function myError(response){
$scope.result = "Error";
console.log("error in 748")
});
}
......
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