course details changes done

This commit is contained in:
gandhimathi 2018-02-02 15:46:16 +05:30
parent 67513a8a05
commit 6ae2e2f1c0

View File

@ -437,8 +437,13 @@ app.controller('callTrackingCtrl', ["$scope","$rootScope","toaster", "$filter",
angular.forEach($scope.tillPendingDetails, function (value, key) { angular.forEach($scope.tillPendingDetails, function (value, key) {
$scope.currentDate = new Date().getFullYear() + '-' + ('0' + (new Date().getMonth() + 1)).slice(-2) + '-' + ('0' + new Date().getDate()).slice(-2); $scope.currentDate = new Date().getFullYear() + '-' + ('0' + (new Date().getMonth() + 1)).slice(-2) + '-' + ('0' + new Date().getDate()).slice(-2);
// $scope.currentDate = new Date().getFullYear() + '-' + ('0' + (new Date().getMonth() + 1)).slice(-2) + '-' + ('0' + new Date().getDate()).slice(-2); // $scope.currentDate = new Date().getFullYear() + '-' + ('0' + (new Date().getMonth() + 1)).slice(-2) + '-' + ('0' + new Date().getDate()).slice(-2);
$scope.currentDate=$filter('date')(new Date(), 'dd-MM-yyyy'); $scope.currentDate=$filter('date')(new Date(), 'yyyy-MM-dd');
if (($scope.currentDate) > (value.followupDetails) && (value.statusName!='CLOSE')) { var getDay = value.followupDetails.substring(0, 2);
var getMonth = value.followupDetails.substring(3, 5);
var getYear = value.followupDetails.substring(6, 10);
// var dbFollowDate = getYear+'-'+getMonth+'-'+getDay;
$scope.dbFollowDate = getYear+'-'+getMonth+'-'+getDay;
if (($scope.currentDate) > ( $scope.dbFollowDate) && (value.statusName!='CLOSE')) {
$scope.data.push(value); $scope.data.push(value);
} }
@ -480,8 +485,13 @@ app.controller('callTrackingCtrl', ["$scope","$rootScope","toaster", "$filter",
angular.forEach($scope.tillPendingDetails, function (value, key) { angular.forEach($scope.tillPendingDetails, function (value, key) {
$scope.currentDate = new Date().getFullYear() + '-' + ('0' + (new Date().getMonth() + 1)).slice(-2) + '-' + ('0' + new Date().getDate()).slice(-2); $scope.currentDate = new Date().getFullYear() + '-' + ('0' + (new Date().getMonth() + 1)).slice(-2) + '-' + ('0' + new Date().getDate()).slice(-2);
// $scope.currentDate = new Date().getFullYear() + '-' + ('0' + (new Date().getMonth() + 1)).slice(-2) + '-' + ('0' + new Date().getDate()).slice(-2); // $scope.currentDate = new Date().getFullYear() + '-' + ('0' + (new Date().getMonth() + 1)).slice(-2) + '-' + ('0' + new Date().getDate()).slice(-2);
$scope.currentDate=$filter('date')(new Date(), 'dd-MM-yyyy'); $scope.currentDate=$filter('date')(new Date(), 'yyyy-MM-dd');
if (($scope.currentDate) > (value.followupDetails) && (value.statusName!='CLOSE')) { var getDay = value.followupDetails.substring(0, 2);
var getMonth = value.followupDetails.substring(3, 5);
var getYear = value.followupDetails.substring(6, 10);
// var dbFollowDate = getYear+'-'+getMonth+'-'+getDay;
$scope.dbFollowDate = getYear+'-'+getMonth+'-'+getDay;
if (($scope.currentDate) > ($scope.dbFollowDate) && (value.statusName!='CLOSE')) {
$scope.data.push(value); $scope.data.push(value);
} }
@ -522,7 +532,7 @@ app.controller('callTrackingLeadCtrl', ["$scope","$rootScope","toaster", "$filte
"leadDate": new Date(), "leadDate": new Date(),
"search":$filter('date')(new Date(), 'yyyy-MM-dd') "search":$filter('date')(new Date(), 'yyyy-MM-dd')
}; };
$scope.hideDateSearch=true; $scope.hideDateSearch=true;
@ -701,9 +711,9 @@ app.controller('callTrackingLeadCtrl', ["$scope","$rootScope","toaster", "$filte
} }
}]); }]);
/* /*
* close tracking controller * close tracking controller
* */ * */
app.controller('callTrackingCloseCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTableParams", "API_POINTS", "$localStorage", "$http", "$state", function ($scope,$rootScope,toaster, $filter, ngTableParams, apiPoint, $localStorage, $http, $state) { app.controller('callTrackingCloseCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTableParams", "API_POINTS", "$localStorage", "$http", "$state", function ($scope,$rootScope,toaster, $filter, ngTableParams, apiPoint, $localStorage, $http, $state) {
localStorage.setItem('searchName',''); localStorage.setItem('searchName','');
localStorage.setItem('searchMobile',''); localStorage.setItem('searchMobile','');