Commit 45b8c6fc9ce75e247fc1f00f2e563220b0264dd9
1 parent
3ece3cbe39
Exists in
master
and in
1 other branch
validacion no se encuentra idUsuario
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -82,6 +82,11 @@ angular.module('focaModalDetalleCisternas') |
82 | 82 | idVehiculo: $scope.vehiculo.id, |
83 | 83 | fechaReparto: focaModalDetalleCisternasService.fecha |
84 | 84 | }; |
85 | + if(!focaModalDetalleCisternasService.idUsuario) { | |
86 | + focaModalService.alert('No logeado como vendedor'); | |
87 | + $scope.cargando = false; | |
88 | + return; | |
89 | + } | |
85 | 90 | focaModalDetalleCisternasService.guardarCisternas(cisterna, $scope.remito.id) |
86 | 91 | .then(function() { |
87 | 92 | focaModalService.alert('Cisternas cargadas con éxito').then(function() { |