Commit 2c9026f2d6381c3326ab92d6a36e1e56ab3cd0ad
1 parent
1f343e7653
Exists in
master
and in
1 other branch
- Saqué lógica y propiedades innecesarias.
Showing
1 changed file
with
1 additions
and
7 deletions
 
Show diff stats
src/js/controller.js
| ... | ... | @@ -4,13 +4,11 @@ angular.module('focaModalNotaPedido') | 
| 4 | 4 | '$filter', | 
| 5 | 5 | '$scope', | 
| 6 | 6 | '$uibModalInstance', | 
| 7 | - 'parametroNotaPedido', | |
| 8 | 7 | 'focaModalNotaPedidoService', | 
| 9 | - function($filter, $scope, $uibModalInstance, parametroNotaPedido, | |
| 8 | + function($filter, $scope, $uibModalInstance, | |
| 10 | 9 | focaModalNotaPedidoService | 
| 11 | 10 | ) { | 
| 12 | 11 | |
| 13 | - $scope.simbolo = parametroNotaPedido.simbolo; | |
| 14 | 12 | $scope.filters = ''; | 
| 15 | 13 | $scope.notasPedido = []; | 
| 16 | 14 | $scope.primerBusqueda = false; | 
| ... | ... | @@ -30,10 +28,6 @@ angular.module('focaModalNotaPedido') | 
| 30 | 28 | } | 
| 31 | 29 | }; | 
| 32 | 30 | function llenarDatos(res) { | 
| 33 | - for(var i = 0; i < res.data.length; i++) { | |
| 34 | - res.data[i].precio = | |
| 35 | - res.data[i].precio / parametroNotaPedido.cotizacion; | |
| 36 | - } | |
| 37 | 31 | $scope.searchLoading = false; | 
| 38 | 32 | $scope.primerBusqueda = true; | 
| 39 | 33 | $scope.notasPedido = res.data; | 
