Commit 99fc7982e420b27b2aee3a952c96b35a17ddfcee
1 parent
5df5c2a273
Exists in
master
and in
1 other branch
Arreglo en filtros de sector.
Showing
4 changed files
with
4 additions
and
10 deletions
Show diff stats
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
src/views/informe-reparto-optimo.html