Commit d966d341f93dbcc63c09e9feae2e74275039475c
1 parent
2c05645476
Exists in
master
and in
1 other branch
arreglos parametros
Showing
1 changed file
with
7 additions
and
6 deletions
Show diff stats
src/js/osm-directive.js
... | ... | @@ -25,22 +25,23 @@ angular.module('focaAdminSeguimiento').directive('osm', function() { |
25 | 25 | |
26 | 26 | if ($scope.parametros.actividad === 'Nota de pedido') { |
27 | 27 | observacion += |
28 | - 'Vendedor: ' + marcador.idUsuario + ' - ' + | |
28 | + 'Vendedor: ' + marcador.notaPedido[0].idVendedor + ' - ' + | |
29 | 29 | ( |
30 | - marcador.notaPedido.vendedor ? | |
31 | - marcador.notaPedido.vendedor.nombre : | |
30 | + marcador.notaPedido[0].vendedor ? | |
31 | + marcador.notaPedido[0].vendedor.NomVen : | |
32 | 32 | '' |
33 | 33 | ) + '<br/>'; |
34 | 34 | |
35 | 35 | if ($scope.parametros.individual) { |
36 | 36 | observacion += 'Nº: ' + $filter('comprobante')([ |
37 | - marcador.notaPedido.sucursal, | |
38 | - marcador.notaPedido.numeroNotaPedido | |
37 | + marcador.notaPedido[0].sucursal, | |
38 | + marcador.notaPedido[0].numeroNotaPedido | |
39 | 39 | ]) + '<br/>'; |
40 | 40 | observacion += |
41 | 41 | 'Total: ' + $filter('currency')(marcador.notaPedido.total, '$'); |
42 | 42 | } else { |
43 | - observacion += 'Cantidad de nota de pedido: ' + marcador.cantidad; | |
43 | + observacion += 'Cantidad de nota de pedido: ' + | |
44 | + marcador.cantidad + '<br/>'; | |
44 | 45 | observacion += 'Total Vendido: ' + |
45 | 46 | $filter('currency')(marcador.total, '$'); |
46 | 47 | } |