Commit a4a4b431 authored by Vijay Akula's avatar Vijay Akula

Merge branch 'FEATURE/REFRACTING_UI' of https://gitlab.mynisum.com/hr/mytime...

Merge branch 'FEATURE/REFRACTING_UI' of https://gitlab.mynisum.com/hr/mytime into FEATURE/REFRACTING_UI
parents 54f73aa4 3a248931
...@@ -483,15 +483,15 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $ ...@@ -483,15 +483,15 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
$scope.alertMsg = "Please select the Future Date for passport Expiry"; $scope.alertMsg = "Please select the Future Date for passport Expiry";
document.getElementById('passportExpiryDate').focus(); document.getElementById('passportExpiryDate').focus();
} }
else if(hasB1 == undefined){ else if(hasPassort == "Yes" && hasPassort !== undefined && hasB1 == undefined){
$scope.alertMsg = "Please select a Visa"; $scope.alertMsg = "Please select a Visa";
document.getElementById('hasB1').focus(); document.getElementById('hasB1').focus();
} }
else if(hasB1 == "Yes" && (b1ExpiryDate == undefined || b1ExpiryDate == "")){ else if(hasPassort == "Yes" && hasPassort !== undefined && hasB1 == "Yes" && (b1ExpiryDate == undefined || b1ExpiryDate == "")){
$scope.alertMsg = "Please select the B1 Expiry Date "; $scope.alertMsg = "Please select the B1 Expiry Date ";
document.getElementById('b1ExpiryDate').focus(); document.getElementById('b1ExpiryDate').focus();
} }
else if(hasB1 == "Yes" && (b1ExpiryDate < today)){ else if(hasPassort == "Yes" && hasPassort !== undefined && hasB1 == "Yes" && (b1ExpiryDate < today)){
$scope.alertMsg = "Please select the Future Date for B1 Expiry"; $scope.alertMsg = "Please select the Future Date for B1 Expiry";
document.getElementById('b1ExpiryDate').focus(); document.getElementById('b1ExpiryDate').focus();
} }
...@@ -548,6 +548,8 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $ ...@@ -548,6 +548,8 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
if(obj.hasPassort != "Yes"){ if(obj.hasPassort != "Yes"){
delete obj['passportExpiryDate']; delete obj['passportExpiryDate'];
delete obj['hasB1'];
delete obj['b1ExpiryDate'];
} }
if(obj.empStatus == "Active"){ if(obj.empStatus == "Active"){
delete obj['endDate']; delete obj['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