Commit c3110d24a702d3a2b0e7ef178b79dc32fa3f23b7

Authored by Nicolás Guarnieri
Exists in master and in 1 other branch develop

Merge branch 'master' into 'master'

Master

See merge request modulos-npm/foca-admin-seguimiento!11
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  
... ... @@ -46,7 +47,7 @@ angular.module(&#39;focaAdminSeguimiento&#39;).directive(&#39;osm&#39;, function() {
46 47 $filter('currency')(marcador.total, '$');
47 48 }
48 49 } else {
49   - observacion += 'Vehiculo: ' + marcador.idUsuario + '<br/>';
  50 + observacion += 'Vehiculo: ' + marcador.hojaRuta[0].idVehiculo + '<br/>';
50 51 if ($scope.parametros.individual) {
51 52 observacion += 'Hoja de ruta: ' + $filter('comprobante')([
52 53 marcador.remito[0].hojaRuta[0].sucursal,