Commit 9a49938ca761fadb4639f07791d71eb45ebf3474
1 parent
31982966b7
Exists in
master
puntos de descarga en cabecera
Showing
1 changed file
with
12 additions
and
0 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -419,6 +419,18 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
419 | 419 | modalInstance.result.then( |
420 | 420 | function(puntosDescarga) { |
421 | 421 | $scope.notaPedido.puntosDescarga = puntosDescarga; |
422 | + | |
423 | + //AGREGO PUNTOS DE DESCARGA A CABECERA | |
424 | + var puntosStamp = ''; | |
425 | + puntosDescarga.forEach(function(punto, idx, arr) { | |
426 | + puntosStamp += punto.descripcion; | |
427 | + if((idx + 1) !== arr.length) puntosStamp += ', '; | |
428 | + }); | |
429 | + | |
430 | + $scope.$broadcast('addCabecera', { | |
431 | + label: 'Puntos de descarga:', | |
432 | + valor: puntosStamp | |
433 | + }); | |
422 | 434 | }, function() { |
423 | 435 | $scope.abrirModalDomicilios($scope.cliente); |
424 | 436 | } |