diff --git a/src/js/controller-general-unidad.js b/src/js/controller-general-unidad.js index b52b6f2..49b6fa2 100644 --- a/src/js/controller-general-unidad.js +++ b/src/js/controller-general-unidad.js @@ -172,6 +172,9 @@ angular.module('focaModalInforme') $scope.cancel = function() { $uibModalInstance.dismiss('Cancelar'); }; + $scope.clearSector = function() { + $scope.params.sector = undefined; + }; function unirProductos(productos) { var result = [{fechas: []}]; @@ -210,7 +213,7 @@ angular.module('focaModalInforme') }); } }); - + results.forEach(function(result) { result.vehiculos = unirVehiculos(result.vehiculos); }); diff --git a/src/js/controller-litros-km-unidad.js b/src/js/controller-litros-km-unidad.js index ce6d1b1..fff8e05 100644 --- a/src/js/controller-litros-km-unidad.js +++ b/src/js/controller-litros-km-unidad.js @@ -146,6 +146,7 @@ angular.module('focaModalInforme') $scope.seleccionarUnidad = function() { $scope.seleccionarTransportista().then( function(transportista) { + $scope.transportista = transportista; var parametrosModal = { titulo: 'Búsqueda de vehículos', query: '/vehiculo/transportista/' + transportista.COD, diff --git a/src/views/informe-chofer.html b/src/views/informe-chofer.html index d65abf6..3b521df 100644 --- a/src/views/informe-chofer.html +++ b/src/views/informe-chofer.html @@ -1,9 +1,10 @@