course details changes done
This commit is contained in:
parent
6ae2e2f1c0
commit
43a6ad5a77
@ -56,13 +56,18 @@ app.controller('dashboardCtrl', ["$scope","$rootScope", "toaster", "$filter", "n
|
||||
$scope.emptyDataToday = true;
|
||||
}
|
||||
if (response.data.todayPendingStatus) {
|
||||
$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 = new Date().getFullYear() + '-' + ('0' + (new Date().getMonth() + 1)).slice(-2) + '-' + ('0' + new Date().getDate()).slice(-2);
|
||||
$scope.currentDate=$filter('date')(new Date(), 'yyyy-MM-dd');
|
||||
$scope.fetchFolloupDetails = response.data.PendingFolloupDetails.trackingDetails;
|
||||
angular.forEach($scope.fetchFolloupDetails, function (value, key) {
|
||||
var getDay = value.FollowupOn.substring(0, 2);
|
||||
var getMonth = value.FollowupOn.substring(3, 5);
|
||||
var getYear = value.FollowupOn.substring(6, 10);
|
||||
// var dbFollowDate = getYear+'-'+getMonth+'-'+getDay;
|
||||
$scope.dbFollowDate = getYear+'-'+getMonth+'-'+getDay;
|
||||
|
||||
if (($scope.currentDate) > (value.FollowupOn) && (value.statusName!='CLOSE')) {
|
||||
if (($scope.currentDate) > ($scope.dbFollowDate) && (value.statusName!='CLOSE')) {
|
||||
|
||||
$rootScope.pendingFolloupDetails.push(value);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user