Commit 70e82ed927561a0c93831c8ecc9d5753b9ff5268

Authored by Luigi
1 parent 22b12d67b6
Exists in master and in 1 other branch develop

Arreglo botón pausar y cabeceras

Showing 1 changed file with 11 additions and 10 deletions   Show diff stats
src/js/controller.js
... ... @@ -20,7 +20,7 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl',
20 20 $rootScope, focaSeguimientoService, APP, focaLoginService, $localStorage)
21 21 {
22 22 config();
23   -
  23 +
24 24 function config() {
25 25 // PARAMETROS INICIALES PARA FUNCIONAMIENTO DEL PROGRAMA
26 26 $scope.notaPedido = {};
... ... @@ -50,15 +50,15 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl',
50 50 }
51 51  
52 52 //Trabajo con la cotización más reciente, por eso uso siempre la primera '[0]'
53   - crearNotaPedidoService.getCotizacionByIdMoneda(1).then(function(res) {
  53 + /*crearNotaPedidoService.getCotizacionByIdMoneda(1).then(function(res) {
54 54 var monedaPorDefecto = res.data[0];
55 55  
56   - $scope.notaPedido.cotizacion = Object.assign(
  56 + $scope.inicial.cotizacion = Object.assign(
57 57 {moneda: monedaPorDefecto},
58 58 monedaPorDefecto.cotizaciones[0]
59 59 );
60   - $scope.inicial.cotizacion = $scope.notaPedido.cotizacion;
61   - });
  60 + $scope.notaPedido.cotizacion = $scope.inicial.cotizacion;
  61 + });*/
62 62  
63 63 init();
64 64 $timeout(function() {getLSNotaPedido();});
... ... @@ -810,7 +810,7 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl',
810 810  
811 811 var cabeceras = [];
812 812  
813   - if (notaPedido.cotizacion.moneda.CODIGO_AFIP != 'PES') {
  813 + if (notaPedido.cotizacion.moneda.CODIGO_AFIP !== 'PES') {
814 814 cabeceras.push({
815 815 label: 'Moneda:',
816 816 valor: notaPedido.cotizacion.moneda.DETALLE
... ... @@ -837,7 +837,7 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl',
837 837 valor: notaPedido.domicilioStamp
838 838 });
839 839 }
840   -
  840 +
841 841 if (notaPedido.vendedor.NUM) {
842 842 cabeceras.push({
843 843 label: 'Vendedor:',
... ... @@ -908,8 +908,9 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl',
908 908 notaPedido.numeroNotaPedido, 8
909 909 );
910 910  
911   - $scope.notaPedido.notaPedidoPuntoDescarga =
912   - formatearPuntosDescarga(notaPedido.notaPedidoPuntoDescarga || []);
  911 + /*$scope.notaPedido.notaPedidoPuntoDescarga =
  912 + formatearPuntosDescarga(notaPedido.notaPedidoPuntoDescarga || []);*/
  913 +
913 914 addArrayCabecera(cabeceras);
914 915 }
915 916  
... ... @@ -990,8 +991,8 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl',
990 991 function getLSNotaPedido() {
991 992 var notaPedido = JSON.parse($localStorage.notaPedido || null);
992 993 if (notaPedido) {
993   - setearNotaPedido(notaPedido);
994 994 delete $localStorage.notaPedido;
  995 + setearNotaPedido(notaPedido);
995 996 }
996 997 }
997 998