From 914f3b2ef0e172457e9dcdf407887c185f0a3334 Mon Sep 17 00:00:00 2001 From: Luigi Date: Wed, 17 Apr 2019 11:48:06 -0300 Subject: [PATCH] Auto stash before revert of "Validar id remito" --- src/js/controller.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/js/controller.js b/src/js/controller.js index 464b3b8..46ad7d5 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -127,10 +127,7 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', }, true); $scope.crearNotaPedido = function() { - if (!$scope.notaPedido.cliente.COD) { - focaModalService.alert('Ingrese Cliente'); - return; - } else if ($scope.notaPedido.idRemito === -1) { + if ($scope.notaPedido.idRemito === -1) { focaBotoneraLateralService.alert('No se puede modificar esta nota de pedido'); return; } else if (!$scope.notaPedido.proveedor.COD) { @@ -818,13 +815,6 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', function setearNotaPedido(notaPedido) { //aƱado cabeceras - - if (validarNotaRemitada()) { - $scope.validar = true; - } else { - $scope.validar = false; - } - $scope.notaPedido = notaPedido; if (!$scope.notaPedido.domicilio) { $scope.notaPedido.domicilio = { -- 1.9.1