Commit ce521aa6d1b8b3e6253198f460ce852dde0e5033
1 parent
5d882c0939
Exists in
master
Cambio
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/js/controller.js
| ... | ... | @@ -52,7 +52,7 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
| 52 | 52 | //Trabajo con la cotización más reciente, por eso uso siempre la primera '[0]' |
| 53 | 53 | crearNotaPedidoService.getCotizacionByIdMoneda(1).then(function(res) { |
| 54 | 54 | var monedaPorDefecto = res.data[0]; |
| 55 | - $scope.inicial.cotizacion = Object.assign( | |
| 55 | + $scope.notaPedido.cotizacion = Object.assign( | |
| 56 | 56 | {moneda: monedaPorDefecto}, |
| 57 | 57 | monedaPorDefecto.cotizaciones[0] |
| 58 | 58 | ); |