Commit 976c2ee4013e2e909cc5924081189914291f17c3

Authored by Luigi
Exists in master

Merge remote-tracking branch 'origin/master'

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() {