Commit ace98508163b7c15c5d4941eed574a6591204cb4
Exists in
master
Merge branch 'master' into 'develop'
Agregados puntos de descarga a la cabecera de remito cuando selecciono nota pedido. See merge request !66
Showing
1 changed file
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 |