Commit a65d2455e13ba780a77dccb82968f829fc092b4c

Authored by Palak Handa
1 parent e3d25d2618
Exists in master and in 1 other branch paytm

minor change

Showing 1 changed file with 9 additions and 3 deletions   Show diff stats
... ... @@ -589,6 +589,10 @@
589 589 $('#invalidToken').css('display', 'block');
590 590 } else {
591 591 val = val.toUpperCase();
  592 + if((val == "IITH99" && $scope.data.city != "Hyderabad") || (val == "IITM99" && $scope.data.city != "Chennai") || (val == "IITD99" && $scope.data.city != "Delhi") || (val == "IITB99" && $scope.data.city != "Mumbai") || (val == "IITK99" && $scope.data.city != "Kanpur") || (val == "IIMC99" && $scope.data.city != "Kolkata") || (val == "IIMA99" && $scope.data.city != "Ahmedabad") || (val == "JAI40" && $scope.data.city != "Jaipur")){
  593 + $scope.tokencheck = false;
  594 + return;
  595 + }
592 596 $http.get(BASE_URL + '/ambassadors?filter={"where": {"referalToken": "' + val + '"}}')
593 597 .then(function(searchResult) {
594 598 console.log("searchResult",searchResult)
... ... @@ -638,9 +642,10 @@
638 642 if($scope.tokencheck == true){
639 643 var amount = $scope.ticketAmnt
640 644 console.log("====$scope.discountpercentage====",$scope.discountpercentage);
641   - if($scope.discountpercentage == "100") {
642   - $scope.discountpercentage = "99.8";
643   - console.log("$scope.discountpercentage====",$scope.discountpercentage)
  645 + console.log("resultcity===",$scope.data.city)
  646 + if($scope.discountpercentage == "100") {
  647 + $scope.discountpercentage = "99.8";
  648 + console.log("$scope.discountpercentage====",$scope.discountpercentage)
644 649 }
645 650 console.log("====$scope.discountpercentage====",$scope.discountpercentage);
646 651 $scope.percDiscount = $scope.discountpercentage/100;
... ... @@ -718,6 +723,7 @@
718 723 }, function myError(error) {
719 724 });
720 725 }
  726 + //}
721 727  
722 728 }, function myError(error) {
723 729  
... ...