Commit 84231635d0481bb24ec18c868accfe2be5a2f9a5
1 parent
8da07a79e7
Exists in
master
espacios, nombre variable
Showing
1 changed file
with
3 additions
and
5 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -378,7 +378,7 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
378 | 378 | if(!$scope.notaPedido.cliente.COD || !$scope.notaPedido.domicilio.id) { |
379 | 379 | focaModalService.alert('Primero seleccione un cliente y un domicilio'); |
380 | 380 | return; |
381 | - }else{ | |
381 | + }else { | |
382 | 382 | var modalInstance = $uibModal.open( |
383 | 383 | { |
384 | 384 | ariaLabelledBy: 'Búsqueda de Puntos de descarga', |
... | ... | @@ -804,11 +804,10 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
804 | 804 | return false; |
805 | 805 | } |
806 | 806 | } |
807 | - | |
808 | - function formatearPuntosDescarga(notaPedidoPuntoDescarga) { | |
807 | + function formatearPuntosDescarga(puntosDescarga) { | |
809 | 808 | var result = []; |
810 | 809 | |
811 | - notaPedidoPuntoDescarga.forEach(function(el) { | |
810 | + puntosDescarga.forEach(function(el) { | |
812 | 811 | var puntoDescarga = result.filter(function(resultPunto) { |
813 | 812 | return resultPunto.id == el.idPuntoDescarga; |
814 | 813 | }); |
... | ... | @@ -836,7 +835,6 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
836 | 835 | ] |
837 | 836 | }); |
838 | 837 | } |
839 | - | |
840 | 838 | }); |
841 | 839 | return result; |
842 | 840 | } |