Commit 854ba16e9bd26dd25f7b53e2e1847049aade9a6e
1 parent
47d08ee7f2
Exists in
master
Arreglo de algunos errores de sintaxis.
Showing
1 changed file
with
6 additions
and
6 deletions
Show diff stats
src/js/controller.js
| ... | ... | @@ -292,7 +292,7 @@ angular.module('focaCrearFactura').controller('facturaController', [ |
| 292 | 292 | .catch($scope.seleccionarVendedor); |
| 293 | 293 | }) |
| 294 | 294 | .catch(function (err) { |
| 295 | - console.log(err) | |
| 295 | + console.log(err); | |
| 296 | 296 | }); |
| 297 | 297 | |
| 298 | 298 | }, function () { } |
| ... | ... | @@ -327,7 +327,7 @@ angular.module('focaCrearFactura').controller('facturaController', [ |
| 327 | 327 | crearRemitoService.getCotizacionByIdMoneda(1) |
| 328 | 328 | .then(function (res) { |
| 329 | 329 | |
| 330 | - cotizacionPArgentino = res.data[0].cotizaciones[0]; | |
| 330 | + var cotizacionPArgentino = res.data[0].cotizaciones[0]; | |
| 331 | 331 | cotizacionPArgentino.moneda = moneda; |
| 332 | 332 | |
| 333 | 333 | actualizarCabeceraMoneda(cotizacionPArgentino); |
| ... | ... | @@ -449,7 +449,7 @@ angular.module('focaCrearFactura').controller('facturaController', [ |
| 449 | 449 | return { |
| 450 | 450 | despachos: producto.despachos, |
| 451 | 451 | nombreProducto: producto.DetArt |
| 452 | - } | |
| 452 | + }; | |
| 453 | 453 | } |
| 454 | 454 | }, |
| 455 | 455 | size: 'md' |
| ... | ... | @@ -482,7 +482,7 @@ angular.module('focaCrearFactura').controller('facturaController', [ |
| 482 | 482 | LEG: $scope.factura.vendedor.CodVen, |
| 483 | 483 | TUR: $scope.factura.vendedor.TurVen, |
| 484 | 484 | ORDEN_PRECOMPRA: '', |
| 485 | - ESC: producto.tipoFactura == 'L' ? 1 : 0, | |
| 485 | + ESC: producto.tipoFactura === 'L' ? 1 : 0, | |
| 486 | 486 | CMF: 0, |
| 487 | 487 | PTA: 0, |
| 488 | 488 | IVS: 0, |
| ... | ... | @@ -538,7 +538,7 @@ angular.module('focaCrearFactura').controller('facturaController', [ |
| 538 | 538 | }) |
| 539 | 539 | .then(function (contraseña) { |
| 540 | 540 | |
| 541 | - if (contraseña != vendedor.ClaVen.trim()) { | |
| 541 | + if (contraseña !== vendedor.ClaVen.trim()) { | |
| 542 | 542 | |
| 543 | 543 | focaModalService.alert('Clave incorrecta').then(function () { |
| 544 | 544 | indicarPassword(vendedor); |
| ... | ... | @@ -698,7 +698,7 @@ angular.module('focaCrearFactura').controller('facturaController', [ |
| 698 | 698 | return false; |
| 699 | 699 | } else if (angular.equals({}, $scope.factura.cliente)) { |
| 700 | 700 | |
| 701 | - focaModalService.alert('Seleccione Cliente') | |
| 701 | + focaModalService.alert('Seleccione Cliente'); | |
| 702 | 702 | return false; |
| 703 | 703 | } else if (!$scope.articulosFiltro().length) { |
| 704 | 704 |