Commit cd510c49a794ca293966269fa2eb8622bba14536
1 parent
979479cb09
Exists in
master
and in
1 other branch
Agregados puntos de descarga a la cabecera de remito cuando selecciono nota pedido.
Showing
1 changed file
with
8 additions
and
0 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -113,6 +113,10 @@ angular.module('focaCrearRemito') .controller('remitoController', |
113 | 113 | $scope.notaPedido.id = notaPedido.id; |
114 | 114 | $scope.$broadcast('removeCabecera', 'Bomba:'); |
115 | 115 | $scope.$broadcast('removeCabecera', 'Kilometros:'); |
116 | + var puntosDescarga = []; | |
117 | + notaPedido.notaPedidoPuntoDescarga.forEach(function(notaPedido, idx, arr) { | |
118 | + puntosDescarga.push(notaPedido.puntoDescarga); | |
119 | + }); | |
116 | 120 | var cabeceras = [ |
117 | 121 | { |
118 | 122 | label: 'Moneda:', |
... | ... | @@ -159,6 +163,10 @@ angular.module('focaCrearRemito') .controller('remitoController', |
159 | 163 | label: 'Flete:', |
160 | 164 | valor: notaPedido.fob === 1 ? 'FOB' : ( |
161 | 165 | notaPedido.flete === 1 ? 'Si' : 'No') |
166 | + }, | |
167 | + { | |
168 | + label: 'Puntos de descarga: ', | |
169 | + valor: $filter('rellenarDigitos')(getCabeceraPuntoDescarga(puntosDescarga)) | |
162 | 170 | } |
163 | 171 | ]; |
164 | 172 |