Commit 5df4f2de3b1100ddc01b74a51903c6aecdab2e20

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

Merge branch 'master' into 'master'

cartel nota pedido como quiere jorge

See merge request modulos-npm/foca-admin-seguimiento!12
src/js/osm-directive.js
... ... @@ -17,29 +17,25 @@ angular.module('focaAdminSeguimiento').directive('osm', function() {
17 17 $scope.markers = [];
18 18 angular.forEach($scope.marcadores, function(marcador) {
19 19 var observacion = '';
20   - observacion += 'Actividad: ' + marcador.actividad + '<br/>';
21   -
22   - observacion += 'Fecha: ' +
23   - $filter('date')(marcador.fecha.slice(0,10), 'dd/MM/yyyy') + ' ' +
24   - marcador.fecha.slice(11,19) + '<br/>';
25   -
  20 +
26 21 if ($scope.parametros.actividad === 'Nota de pedido') {
27   - console.info(marcador.notaPedido[0].vendedor);
28   - observacion +=
  22 + observacion +=
29 23 'Vendedor: ' + marcador.notaPedido[0].idVendedor + ' - ' +
30 24 (
31 25 marcador.notaPedido[0].vendedor[0] ?
32 26 marcador.notaPedido[0].vendedor[0].NomVen :
33 27 ''
34 28 ) + '<br/>';
35   -
  29 + observacion += 'Fecha: ' +
  30 + $filter('date')(marcador.fecha.slice(0,10), 'dd/MM/yyyy') + ' ' +
  31 + marcador.fecha.slice(11,19) + '<br/>';
  32 + observacion += 'Nº: ' + $filter('comprobante')([
  33 + marcador.notaPedido[0].sucursal,
  34 + marcador.notaPedido[0].numeroNotaPedido
  35 + ]) + '<br/>';
36 36 if ($scope.parametros.individual) {
37   - observacion += 'Nº: ' + $filter('comprobante')([
38   - marcador.notaPedido[0].sucursal,
39   - marcador.notaPedido[0].numeroNotaPedido
40   - ]) + '<br/>';
41 37 observacion +=
42   - 'Total: ' + $filter('currency')(marcador.notaPedido.total, '$');
  38 + 'Total: ' + $filter('currency')(marcador.notaPedido[0].total, '$');
43 39 } else {
44 40 observacion += 'Cantidad de nota de pedido: ' +
45 41 marcador.cantidad + '<br/>';