Commit 0e7aaffba9aade17c616544d6bd650c98abb14ba
Exists in
master
Merge branch 'master' into 'master'
arreglos parametros See merge request modulos-npm/foca-admin-seguimiento!10
Showing
1 changed file
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 | } |