Commit c480d0935fd3ecabb7f3198167589e4cf0b47801

Authored by Eric Fernandez
1 parent 5fa8100a87
Exists in master

code review

src/js/controller.js
... ... @@ -39,7 +39,7 @@ angular.module('focaLogisticaPedidoRuta') .controller('focaLogisticaPedidoRutaCo
39 39  
40 40 $scope.cargar = function(idVehiculo, punto) {
41 41 var idRemito;
42   - if (punto === -1) {
  42 + if(punto === -1) {
43 43 idRemito = -1;
44 44 }else {
45 45 idRemito = JSON.parse(punto).notaPedido.remito.id;
src/js/controllerDetalleVehiculo.js
... ... @@ -22,7 +22,7 @@ angular.module('focaLogisticaPedidoRuta')
22 22 $scope.vehiculo = res.data;
23 23 }
24 24 );
25   - if (idRemito !== -1) {
  25 + if(idRemito !== -1) {
26 26 focaLogisticaPedidoRutaService.obtenerRemitoById(idRemito).then(
27 27 function(res) {
28 28 $scope.remito = res.data;