course details changes done
This commit is contained in:
parent
67513a8a05
commit
6ae2e2f1c0
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user