|
|
@@ -472,8 +472,14 @@ app.controller('mainController', function($scope, $detection, $http, $mdSidenav,
|
|
|
var computeDateFTTH = function() {
|
|
|
if(!$scope.results.ftth) {return;}
|
|
|
|
|
|
+ // Already deployed
|
|
|
+ if($scope.results.ftth.PHASE_TRAV === 'Perimetre deploye FTTH MT') {
|
|
|
+ $scope.results.ftth.date = true;
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
// A date already exists
|
|
|
- if($scope.results.ftth.DATE_OUV_SERVICE_REEL || $scope.results.ftth.DATE_OUV_SERVICE_PREV) {
|
|
|
+ else if($scope.results.ftth.DATE_OUV_SERVICE_REEL || $scope.results.ftth.DATE_OUV_SERVICE_PREV) {
|
|
|
$scope.results.ftth.date = $scope.results.ftth.DATE_OUV_SERVICE_REEL || $scope.results.ftth.DATE_OUV_SERVICE_PREV;
|
|
|
return;
|
|
|
}
|
|
|
@@ -597,6 +603,8 @@ app.controller('mainController', function($scope, $detection, $http, $mdSidenav,
|
|
|
$scope.results.mimo = parseResults($scope.results.mimo);
|
|
|
|
|
|
computeDateFTTH();
|
|
|
+
|
|
|
+ console.log('results', $scope.results);
|
|
|
}
|
|
|
catch(e) {
|
|
|
|