Commit 48987f22fd2b7d43f840d6fb5e70bd80674d5831
Exists in
master
Merge branch 'master' into 'master'
Master (pmarco) See merge request modulos-npm/foca-modal-nota-pedido!2
Showing
1 changed file
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; |