diff --git a/src/js/controller-litros-km-unidad.js b/src/js/controller-litros-km-unidad.js index b901735..2a7df91 100644 --- a/src/js/controller-litros-km-unidad.js +++ b/src/js/controller-litros-km-unidad.js @@ -18,6 +18,9 @@ angular.module('focaModalInforme') $scope.fechaHasta = new Date(); $scope.fechaDesde = new Date(fecha.setMonth(fecha.getMonth() - 1)); $scope.buscar = true; + $scope.unidad = { + codigo: '' + }; $scope.informe = {}; i18nService.setCurrentLang('es'); $scope.gridOptions = { @@ -142,7 +145,7 @@ angular.module('focaModalInforme') }; return focaModalService.modal(parametrosModal) }; - + $scope.seleccionarUnidad = function(key) { if (key === 13) { $scope.seleccionarTransportista().then( diff --git a/src/views/informe-litros-km-unidad.html b/src/views/informe-litros-km-unidad.html index ceae4db..62c276e 100644 --- a/src/views/informe-litros-km-unidad.html +++ b/src/views/informe-litros-km-unidad.html @@ -71,6 +71,14 @@ ng-required="true" ng-keypress="seleccionarUnidad($event.keyCode)" /> +