Commit 7d0a02e02ed49682b2365bec964f4a4e194c1e6c
1 parent
7b1471ae79
Exists in
master
and in
2 other branches
mostrar cobranza NO FINALZIADO
Showing
2 changed files
with
13 additions
and
1 deletions
Show diff stats
src/js/controller.js
| ... | ... | @@ -13,6 +13,10 @@ angular.module('focaAdminSeguimiento') .controller('focaAdminSeguimientoControll |
| 13 | 13 | $scope.actividad = 'Entrega de producto'; |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | + if ($routeParams.parametro === 'cobranza') { | |
| 17 | + $scope.actividad = 'Cobranza'; | |
| 18 | + } | |
| 19 | + | |
| 16 | 20 | $scope.idUsuario = 0; |
| 17 | 21 | $scope.marcadores = []; |
| 18 | 22 | getSeguimiento(); |
src/js/osm-directive.js
| ... | ... | @@ -35,6 +35,7 @@ angular.module('focaAdminSeguimiento').directive('osm', function() { |
| 35 | 35 | ]) + '<br/>'; |
| 36 | 36 | observacion += 'Cliente: ' + |
| 37 | 37 | marcador.notaPedido.cliente.NOM + '<br/>'; |
| 38 | + | |
| 38 | 39 | if ($scope.parametros.individual) { |
| 39 | 40 | observacion += |
| 40 | 41 | 'Total: ' + $filter('currency')(marcador.notaPedido.total, '$'); |
| ... | ... | @@ -50,7 +51,13 @@ angular.module('focaAdminSeguimiento').directive('osm', function() { |
| 50 | 51 | observacion += 'Total Vendido: ' + |
| 51 | 52 | $filter('currency')(marcador.total, '$'); |
| 52 | 53 | } |
| 53 | - } else { | |
| 54 | + } | |
| 55 | + | |
| 56 | + if ($scope.parametros.actividad === 'Cobranza') { | |
| 57 | + | |
| 58 | + } | |
| 59 | + | |
| 60 | + if ($scope.parametros.actividad === 'Entrega de producto') { | |
| 54 | 61 | observacion += 'Vehiculo: ' + |
| 55 | 62 | marcador.remito.hojaRuta.idVehiculo + ' - ' + |
| 56 | 63 | marcador.remito.hojaRuta.vehiculo.tractor + '<br/>'; |
| ... | ... | @@ -71,6 +78,7 @@ angular.module('focaAdminSeguimiento').directive('osm', function() { |
| 71 | 78 | ]) + '<br/>'; |
| 72 | 79 | observacion += 'Cliente: ' + |
| 73 | 80 | marcador.remito.cliente.NOM + '<br/>'; |
| 81 | + | |
| 74 | 82 | if ($scope.parametros.individual) { |
| 75 | 83 | observacion += 'Producto: ' + |
| 76 | 84 | marcador.remito.articulosRemito[0].descripcion + '<br/>'; |