Commit eaddbbe5199847d5a7791d42663661d1709b5d75
1 parent
02bd2f0b6d
Exists in
master
Agregada validacion.
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -132,6 +132,10 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl', |
132 | 132 | if (!$scope.notaPedido.cliente.COD) { |
133 | 133 | focaModalService.alert('Ingrese Cliente'); |
134 | 134 | return; |
135 | + } | |
136 | + if (!$scope.notaPedido.vendedor.id) { | |
137 | + focaModalService.alert('Este cliente no tiene vendedor asignado'); | |
138 | + return; | |
135 | 139 | } else if ($scope.notaPedido.idRemito === -1) { |
136 | 140 | focaBotoneraLateralService.alert('No se puede modificar esta nota de pedido'); |
137 | 141 | return; |