Commit 078ea3cca316374249999b697afe7428947f78b6

Authored by Eric Fernandez
Exists in master

Merge branch 'master' into 'develop'

Master

See merge request !10
src/js/controller-general-unidad.js
... ... @@ -18,7 +18,7 @@ angular.module('focaModalInforme')
18 18 $scope.params = {
19 19 fechaHasta: new Date(),
20 20 fechaDesde: new Date(fecha.setMonth(fecha.getMonth() - 1)),
21   - sector: undefined,
  21 + sector: String,
22 22 diferenciarProductos: false,
23 23 diferenciarMeses: false
24 24 };
... ... @@ -173,9 +173,6 @@ angular.module('focaModalInforme')
173 173 $scope.cancel = function() {
174 174 $uibModalInstance.dismiss('Cancelar');
175 175 };
176   - $scope.clearSector = function() {
177   - $scope.params.sector = undefined;
178   - };
179 176  
180 177 function unirProductos(productos) {
181 178 var result = [{fechas: []}];
src/js/controller-reparto-optimo.js
... ... @@ -17,7 +17,7 @@ angular.module('focaModalInforme')
17 17 $scope.params = {
18 18 fechaHasta: new Date(),
19 19 fechaDesde: new Date(fecha.setMonth(fecha.getMonth() - 1)),
20   - sector: undefined,
  20 + sector: String,
21 21 diferenciarProductos: false,
22 22 diferenciarMeses: false
23 23 };
... ... @@ -182,9 +182,6 @@ angular.module('focaModalInforme')
182 182 );
183 183 }
184 184 };
185   - $scope.clearSector = function() {
186   - $scope.params.sector = undefined;
187   - };
188 185 $scope.volver = function() {
189 186 $scope.buscar = true;
190 187 };
src/views/informe-general-unidad.html
... ... @@ -77,7 +77,7 @@
77 77 ng-show="params.sector.NOMBRE.length >= 1"
78 78 type="button"
79 79 class="clear-input"
80   - ng-click="clearSector()"
  80 + ng-click="params.sector.NOMBRE = ''"
81 81 >
82 82 <i class="fa fa-times"></i>
83 83 </button>
src/views/informe-reparto-optimo.html
... ... @@ -67,7 +67,7 @@
67 67 ng-show="params.sector.NOMBRE.length >= 1"
68 68 type="button"
69 69 class="clear-input"
70   - ng-click="clearSector()"
  70 + ng-click="params.sector.NOMBRE = ''"
71 71 >
72 72 <i class="fa fa-times"></i>
73 73 </button>