Commit 914f3b2ef0e172457e9dcdf407887c185f0a3334
1 parent
976c2ee401
Exists in
master
Auto stash before revert of "Validar id remito"
Showing
1 changed file
with
1 additions
and
11 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -127,10 +127,7 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
127 | 127 | }, true); |
128 | 128 | |
129 | 129 | $scope.crearNotaPedido = function() { |
130 | - if (!$scope.notaPedido.cliente.COD) { | |
131 | - focaModalService.alert('Ingrese Cliente'); | |
132 | - return; | |
133 | - } else if ($scope.notaPedido.idRemito === -1) { | |
130 | + if ($scope.notaPedido.idRemito === -1) { | |
134 | 131 | focaBotoneraLateralService.alert('No se puede modificar esta nota de pedido'); |
135 | 132 | return; |
136 | 133 | } else if (!$scope.notaPedido.proveedor.COD) { |
... | ... | @@ -818,13 +815,6 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
818 | 815 | |
819 | 816 | function setearNotaPedido(notaPedido) { |
820 | 817 | //añado cabeceras |
821 | - | |
822 | - if (validarNotaRemitada()) { | |
823 | - $scope.validar = true; | |
824 | - } else { | |
825 | - $scope.validar = false; | |
826 | - } | |
827 | - | |
828 | 818 | $scope.notaPedido = notaPedido; |
829 | 819 | if (!$scope.notaPedido.domicilio) { |
830 | 820 | $scope.notaPedido.domicilio = { |