Commit aed323a955256b4d26d6f76c11fb90b520f18d00

Authored by Eric Fernandez
1 parent 706f795b5f
Exists in master

si el remito tiene asignado un idUsuario ya no se puede usar

Showing 1 changed file with 1 additions and 3 deletions   Show diff stats
src/js/controllerDetalleVehiculo.js
... ... @@ -24,9 +24,7 @@ angular.module('focaLogisticaPedidoRuta')
24 24 focaLogisticaPedidoRutaService.obtenerRemitoById(idRemito).then(
25 25 function(res) {
26 26 $scope.remito = res.data;
27   - if($scope.remito.idUsuarioProceso && $scope.remito.idUsuarioProceso !==
28   - focaLogisticaPedidoRutaService.idUsuario)
29   - {
  27 + if($scope.remito.idUsuarioProceso) {
30 28 focaModalService.alert('El remito esta siendo cargado por otro usario');
31 29 $uibModalInstance.close();
32 30 }