Commit c218234d409f330c5e7cdd7212eeb81d6d3f732a

Authored by Eric Fernandez
1 parent b24b9e3cee
Exists in master

solo valido uso del vehículo cuando no estás preCargado

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/js/controller.js
... ... @@ -398,7 +398,7 @@ angular.module('focaCrearHojaRuta') .controller('hojaRutaCtrl',
398 398 propiedad: ['codigo', 'tractor', 'semi']
399 399 };
400 400 focaModalService.modal(columnas, query, titulo).then(function(vehiculo) {
401   - if(vehiculoEnUso(vehiculo)) return;
  401 + if(!preCargados && vehiculoEnUso(vehiculo)) return;
402 402 $scope.hojaRuta.vehiculo = vehiculo;
403 403 $scope.hojaRuta.transportista = vehiculo.transportista;
404 404 if(preCargados) {