Commit 16ffeedef8a018b20db58d0eb5143bc15b70a4cf
1 parent
70e82ed927
Exists in
master
Arreglo moneda por defecto
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -50,18 +50,18 @@ 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 | - | |
56 | 55 | $scope.inicial.cotizacion = Object.assign( |
57 | 56 | {moneda: monedaPorDefecto}, |
58 | 57 | monedaPorDefecto.cotizaciones[0] |
59 | 58 | ); |
60 | 59 | $scope.notaPedido.cotizacion = $scope.inicial.cotizacion; |
61 | - });*/ | |
60 | + $timeout(function() {getLSNotaPedido();}); | |
61 | + }); | |
62 | 62 | |
63 | 63 | init(); |
64 | - $timeout(function() {getLSNotaPedido();}); | |
64 | + | |
65 | 65 | } |
66 | 66 | |
67 | 67 | function init() { |