Commit c9dd5818f43b47f5195f3c945965276eb81400b3

Authored by Luigi
1 parent c28f89332a
Exists in master

Validar id remito

Showing 1 changed file with 1 additions and 3 deletions   Show diff stats
src/js/controller.js
... ... @@ -127,8 +127,7 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl',
127 127 }, true);
128 128  
129 129 $scope.crearNotaPedido = function() {
130   - if (validarNotaRemitada()) {
131   - if (!$scope.notaPedido.cliente.COD ) {
  130 + if ($scope.notaPedido.idRemito === -1) {
132 131 focaModalService.alert('Ingrese Cliente');
133 132 return;
134 133 } else if (!$scope.notaPedido.proveedor.COD) {
... ... @@ -224,7 +223,6 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl',
224 223 $scope.saveLoading = false;
225 224 console.info(error);
226 225 });
227   - }
228 226 };
229 227  
230 228 $scope.seleccionarNotaPedido = function() {