Commit a12f96ab05b1daa82c9bc3ab236f9797fbeaf286
1 parent
d966d341f9
Exists in
master
mostrar vendedor
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
src/js/osm-directive.js
| ... | ... | @@ -24,11 +24,12 @@ angular.module('focaAdminSeguimiento').directive('osm', function() { |
| 24 | 24 | marcador.fecha.slice(11,19) + '<br/>'; |
| 25 | 25 | |
| 26 | 26 | if ($scope.parametros.actividad === 'Nota de pedido') { |
| 27 | + console.info(marcador.notaPedido[0].vendedor); | |
| 27 | 28 | observacion += |
| 28 | 29 | 'Vendedor: ' + marcador.notaPedido[0].idVendedor + ' - ' + |
| 29 | 30 | ( |
| 30 | - marcador.notaPedido[0].vendedor ? | |
| 31 | - marcador.notaPedido[0].vendedor.NomVen : | |
| 31 | + marcador.notaPedido[0].vendedor[0] ? | |
| 32 | + marcador.notaPedido[0].vendedor[0].NomVen : | |
| 32 | 33 | '' |
| 33 | 34 | ) + '<br/>'; |
| 34 | 35 |