Commit 7348127e2b1027ed419b7bfee07b4fb4dfa330ee
1 parent
fda5e31ffb
Exists in
master
Borrado console.log()
Showing
1 changed file
with
6 additions
and
6 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -191,7 +191,7 @@ angular.module('focaCrearFactura').controller('facturaController', [ |
191 | 191 | |
192 | 192 | }).catch(function (err) { |
193 | 193 | focaModalService.alert('Hubo un error al guardar la factura'); |
194 | - console.log(err); | |
194 | + console.error(err); | |
195 | 195 | }); |
196 | 196 | |
197 | 197 | }; |
... | ... | @@ -298,7 +298,7 @@ angular.module('focaCrearFactura').controller('facturaController', [ |
298 | 298 | .catch($scope.seleccionarVendedor); |
299 | 299 | }) |
300 | 300 | .catch(function (err) { |
301 | - console.log(err); | |
301 | + console.error(err); | |
302 | 302 | }); |
303 | 303 | |
304 | 304 | }, function () { } |
... | ... | @@ -463,7 +463,6 @@ angular.module('focaCrearFactura').controller('facturaController', [ |
463 | 463 | modalInstance.result |
464 | 464 | .then(function (producto) { |
465 | 465 | |
466 | - console.log(producto); | |
467 | 466 | var articulo = { |
468 | 467 | TIP: $scope.factura.cliente.tipoFactura, |
469 | 468 | TCO: 'FT', |
... | ... | @@ -513,7 +512,7 @@ angular.module('focaCrearFactura').controller('facturaController', [ |
513 | 512 | // focaModalService.alert('El despacho esta en uso'); |
514 | 513 | // }); |
515 | 514 | }) |
516 | - .catch(function (e) { console.log(e); }); | |
515 | + .catch(function (e) { console.error(e); }); | |
517 | 516 | }; |
518 | 517 | |
519 | 518 | function crearFuncionesProductos(producto) { |
... | ... | @@ -590,13 +589,14 @@ angular.module('focaCrearFactura').controller('facturaController', [ |
590 | 589 | $scope.factura.despachos.push(despacho); |
591 | 590 | }) |
592 | 591 | .catch(function (err) { |
593 | - | |
592 | + | |
593 | + console.error(err); | |
594 | 594 | focaModalService.alert('El despacho esta en uso'); |
595 | 595 | }); |
596 | 596 | |
597 | 597 | }) |
598 | 598 | .catch(function (err) { |
599 | - console.log(err); | |
599 | + console.error(err); | |
600 | 600 | }); |
601 | 601 | |
602 | 602 | }; |