Commit fd679a711ea3c1beec1825f8bf994ec95af4ae60
Exists in
master
and in
1 other branch
Merge branch 'master' into 'master'
Master See merge request !15
Showing
1 changed file
Show diff stats
src/js/osm-directive.js
| ... | ... | @@ -88,16 +88,17 @@ angular.module('focaAdminSeguimiento').directive('osm', function() { |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | if ($scope.parametros.actividad === 'Entrega de producto') { |
| 91 | + var remito = marcador.hojaRutaMovimiento.remito; | |
| 91 | 92 | observacion += 'Vehiculo: ' + |
| 92 | - marcador.remito.hojaRuta.idVehiculo + ' - ' + | |
| 93 | - marcador.remito.hojaRuta.vehiculo.tractor + '<br/>'; | |
| 93 | + remito.hojaRuta.idVehiculo + ' - ' + | |
| 94 | + remito.hojaRuta.vehiculo.tractor + '<br/>'; | |
| 94 | 95 | observacion += 'Transportista: ' + |
| 95 | - marcador.remito.hojaRuta.transportista.NOM + '<br/>'; | |
| 96 | + remito.hojaRuta.transportista.NOM + '<br/>'; | |
| 96 | 97 | observacion += 'Chofer: ' + |
| 97 | - marcador.remito.hojaRuta.chofer.nombre + '<br/>'; | |
| 98 | + remito.hojaRuta.chofer.nombre + '<br/>'; | |
| 98 | 99 | observacion += 'Hoja de ruta: ' + $filter('comprobante')([ |
| 99 | - marcador.remito.hojaRuta.sucursal, | |
| 100 | - marcador.remito.hojaRuta.numeroHojaRuta | |
| 100 | + remito.hojaRuta.sucursal, | |
| 101 | + remito.hojaRuta.numeroHojaRuta | |
| 101 | 102 | ]) + '<br/>'; |
| 102 | 103 | |
| 103 | 104 | if (!$scope.parametros.individual) { |
| ... | ... | @@ -109,17 +110,17 @@ angular.module('focaAdminSeguimiento').directive('osm', function() { |
| 109 | 110 | marcador.fecha.slice(11,19) + '<br/>'; |
| 110 | 111 | |
| 111 | 112 | observacion += 'Nº: ' + $filter('comprobante')([ |
| 112 | - marcador.remito.sucursal, | |
| 113 | - marcador.remito.numeroRemito | |
| 113 | + remito.sucursal, | |
| 114 | + remito.numeroRemito | |
| 114 | 115 | ]) + '<br/>'; |
| 115 | 116 | observacion += 'Cliente: ' + |
| 116 | - marcador.remito.cliente.NOM + '<br/>'; | |
| 117 | + remito.cliente.NOM + '<br/>'; | |
| 117 | 118 | |
| 118 | 119 | if ($scope.parametros.individual) { |
| 119 | 120 | observacion += 'Producto: ' + |
| 120 | - marcador.remito.articulosRemito[0].descripcion + '<br/>'; | |
| 121 | + remito.articulosRemito[0].descripcion + '<br/>'; | |
| 121 | 122 | observacion += 'Cantidad entregada: ' + |
| 122 | - marcador.remito.carga + '<br/>'; | |
| 123 | + remito.carga + '<br/>'; | |
| 123 | 124 | |
| 124 | 125 | if (marcador.distancia) { |
| 125 | 126 | observacion += 'Distancia a casa central: ' + marcador.distancia + |