Commit 1145922d7d45063eca7001635a0c047a35b1ebbb
1 parent
74ebda12d1
Exists in
master
Refactor para sacar propiedad no usada.
Showing
1 changed file
with
1 additions
and
6 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -4,13 +4,11 @@ angular.module('focaModalRemito') |
4 | 4 | '$filter', |
5 | 5 | '$scope', |
6 | 6 | '$uibModalInstance', |
7 | - 'parametroRemito', | |
8 | 7 | 'focaModalRemitoService', |
9 | - function($filter, $scope, $uibModalInstance, parametroRemito, | |
8 | + function($filter, $scope, $uibModalInstance, | |
10 | 9 | focaModalRemitoService |
11 | 10 | ) { |
12 | 11 | |
13 | - $scope.simbolo = parametroRemito.simbolo; | |
14 | 12 | $scope.filters = ''; |
15 | 13 | $scope.remitos = []; |
16 | 14 | $scope.primerBusqueda = false; |
... | ... | @@ -30,9 +28,6 @@ angular.module('focaModalRemito') |
30 | 28 | } |
31 | 29 | }; |
32 | 30 | function llenarDatos(res) { |
33 | - for(var i = 0; i < res.data.length; i++) { | |
34 | - res.data[i].precio = res.data[i].precio / parametroRemito.cotizacion; | |
35 | - } | |
36 | 31 | $scope.searchLoading = false; |
37 | 32 | $scope.primerBusqueda = true; |
38 | 33 | $scope.remitos = res.data; |