Commit 148cc7e7255f02c49f06c3e0be27a836017a79f0
1 parent
99a0a4475f
Exists in
master
and in
1 other branch
Agregada validacion, por si no se ingreso algun vendedor.
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
src/js/controller.js
| ... | ... | @@ -532,6 +532,9 @@ angular.module('focaBusquedaCliente') |
| 532 | 532 | } else if (!$scope.cliente.cobrador.NUM) { |
| 533 | 533 | focaModalService.alert('Seleccione un cobrador'); |
| 534 | 534 | return; |
| 535 | + } else if (!$scope.vendedor.NUM) { | |
| 536 | + focaModalService.alert('Seleccione un vendedor'); | |
| 537 | + return; | |
| 535 | 538 | } else if ($scope.cliente.MAIL && !validateEmails($scope.cliente.MAIL)) { |
| 536 | 539 | focaModalService.alert('Ingrese un formato de email válido'); |
| 537 | 540 | return; |