Commit be8b98f3021b1dc80daf6795657a1e288df1b314
Exists in
master
and in
2 other branches
Merge branch 'master' into 'master'
resolve para modal de remito See merge request modulos-npm/foca-crear-hoja-ruta!13
Showing
1 changed file
 
Show diff stats
src/js/controller.js
| ... | ... | @@ -104,7 +104,7 @@ angular.module('focaCrearHojaRuta') .controller('hojaRutaCtrl', | 
| 104 | 104 | if(!$scope.hojaRuta.chofer.id) { | 
| 105 | 105 | focaModalService.alert('Ingrese Chofer'); | 
| 106 | 106 | return; | 
| 107 | - } | |
| 107 | + } | |
| 108 | 108 | |
| 109 | 109 | if(!$scope.hojaRuta.vehiculo.id) { | 
| 110 | 110 | focaModalService.alert('Ingrese Vehiculo'); | 
| ... | ... | @@ -126,7 +126,7 @@ angular.module('focaCrearHojaRuta') .controller('hojaRutaCtrl', | 
| 126 | 126 | if(!$scope.hojaRuta.tarifario.costo) { | 
| 127 | 127 | focaModalService.alert('Ingrese Tarifario'); | 
| 128 | 128 | return; | 
| 129 | - } | |
| 129 | + } | |
| 130 | 130 | |
| 131 | 131 | var date = new Date(); | 
| 132 | 132 | var save = { | 
| ... | ... | @@ -276,7 +276,8 @@ angular.module('focaCrearHojaRuta') .controller('hojaRutaCtrl', | 
| 276 | 276 | ariaLabelledBy: 'Busqueda de Remito', | 
| 277 | 277 | templateUrl: 'foca-modal-remito.html', | 
| 278 | 278 | controller: 'focaModalRemitoController', | 
| 279 | - size: 'lg' | |
| 279 | + size: 'lg', | |
| 280 | + resolve: {usadoPor: function() {return 'hojaRuta';}} | |
| 280 | 281 | } | 
| 281 | 282 | ); | 
| 282 | 283 | modalInstance.result.then( |