Commit 973c0baf3b331c026d771fae6fe1cc5b1e838229

Authored by Jose Pinto
1 parent 3c53f4cc0e
Exists in master

correcciones jshint

Showing 1 changed file with 7 additions and 4 deletions   Show diff stats
src/js/controller.js
... ... @@ -474,7 +474,8 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl',
474 474 cabecera = precioCondicion.nombre + ' ' + plazosConcat.trim();
475 475 } else { //Cuando se ingresan los plazos manualmente
476 476 $scope.notaPedido.idPrecioCondicion = 0;
477   - $scope.idLista = -1; //-1, el modal productos busca todos los productos
  477 + //-1, el modal productos busca todos los productos
  478 + $scope.idLista = -1;
478 479 $scope.plazosPagos = precioCondicion;
479 480 for(var j = 0; j < precioCondicion.length; j++) {
480 481 plazosConcat += precioCondicion[j].dias + ' ';
... ... @@ -504,9 +505,11 @@ angular.module(&#39;focaCrearNotaPedido&#39;) .controller(&#39;notaPedidoCtrl&#39;,
504 505 return {
505 506 flete: $scope.notaPedido.fob ? 'FOB' :
506 507 ( $scope.notaPedido.flete ? '1' :
507   - ($scope.notaPedido.flete === undefined ? null : '0')),
  508 + ($scope.notaPedido.flete === undefined ?
  509 + null : '0')),
508 510 bomba: $scope.notaPedido.bomba ? '1' :
509   - ($scope.notaPedido.bomba === undefined ? null : '0'),
  511 + ($scope.notaPedido.bomba === undefined ?
  512 + null : '0'),
510 513 kilometros: $scope.notaPedido.kilometros
511 514 };
512 515 }
... ... @@ -578,7 +581,7 @@ angular.module(&#39;focaCrearNotaPedido&#39;) .controller(&#39;notaPedidoCtrl&#39;,
578 581 $scope.articulosTabla = articulosTablaTemp;
579 582 $scope.notaPedido.moneda = moneda;
580 583 $scope.notaPedido.cotizacion = cotizacion;
581   - if(moneda.DETALLE == "PESOS ARGENTINOS"){
  584 + if(moneda.DETALLE === 'PESOS ARGENTINOS'){
582 585 removeCabecera('Moneda:');
583 586 removeCabecera('Fecha cotizacion:');
584 587 removeCabecera('Cotizacion:');