Commit 407eb3e5b10a5b66cc4beec3a7259a62277dcf0c
1 parent
00ae153a55
Exists in
master
fix espacios
Showing
1 changed file
with
4 additions
and
5 deletions
Show diff stats
src/js/controller.js
| ... | ... | @@ -53,7 +53,6 @@ angular.module('focaCrearHojaRuta') .controller('hojaRutaCtrl', |
| 53 | 53 | }, |
| 54 | 54 | remitosTabla: [] |
| 55 | 55 | }; |
| 56 | - | |
| 57 | 56 | $scope.idLista = undefined; |
| 58 | 57 | |
| 59 | 58 | focaCrearHojaRutaService.getNumeroHojaRuta().then( |
| ... | ... | @@ -323,7 +322,7 @@ angular.module('focaCrearHojaRuta') .controller('hojaRutaCtrl', |
| 323 | 322 | }; |
| 324 | 323 | |
| 325 | 324 | $scope.seleccionarFechaEntrega = function() { |
| 326 | - if(!$scope.hojaRuta.fechaReparto) { | |
| 325 | + if (!$scope.hojaRuta.fechaReparto) { | |
| 327 | 326 | elegirFecha(); |
| 328 | 327 | return; |
| 329 | 328 | } |
| ... | ... | @@ -472,10 +471,10 @@ angular.module('focaCrearHojaRuta') .controller('hojaRutaCtrl', |
| 472 | 471 | |
| 473 | 472 | function vehiculoEnUso(vehiculo) { |
| 474 | 473 | var idUsuario = focaLoginSrv.getLoginData().vendedorCobrador; |
| 475 | - for(var i = 0; i < vehiculo.cisternas.length; i++) { | |
| 476 | - for(var j = 0; j < vehiculo.cisternas[i].cisternasCarga.length; j++) { | |
| 474 | + for (var i = 0; i < vehiculo.cisternas.length; i++) { | |
| 475 | + for (var j = 0; j < vehiculo.cisternas[i].cisternasCarga.length; j++) { | |
| 477 | 476 | var cisternaCarga = vehiculo.cisternas[i].cisternasCarga[j]; |
| 478 | - if(cisternaCarga.fechaReparto.substring(0, 10) === | |
| 477 | + if (cisternaCarga.fechaReparto.substring(0, 10) === | |
| 479 | 478 | new Date($scope.hojaRuta.fechaReparto).toISOString().substring(0, 10) && |
| 480 | 479 | cisternaCarga.idUsuarioProceso && |
| 481 | 480 | cisternaCarga.idUsuarioProceso !== idUsuario) |