Commit 8f29742572c262549afd346d390bf2dfb73fba09
Exists in
master
and in
1 other branch
Merge branch 'master' into 'master'
Master See merge request !1
Showing
3 changed files
Show diff stats
package.json
1 | 1 | { |
2 | 2 | "name": "foca-admin-seguimiento", |
3 | - "version": "0.0.1", | |
3 | + "version": "0.0.2", | |
4 | 4 | "description": "Seguimiento de actividad", |
5 | 5 | "main": "index.js", |
6 | 6 | "scripts": { |
... | ... | @@ -20,28 +20,28 @@ |
20 | 20 | "author": "Foca Software", |
21 | 21 | "license": "ISC", |
22 | 22 | "devDependencies": { |
23 | - "angular": "1.7.5", | |
24 | - "angular-route": "1.7.5", | |
25 | - "bootstrap": "4.1.3", | |
23 | + "angular": "^1.7.5", | |
24 | + "angular-route": "^1.7.5", | |
25 | + "bootstrap": "^4.1.3", | |
26 | 26 | "font-awesome": "^4.7.0", |
27 | 27 | "gulp": "^3.9.1", |
28 | - "gulp-angular-templatecache": "2.2.3", | |
28 | + "gulp-angular-templatecache": "^2.2.3", | |
29 | 29 | "gulp-clean": "^0.4.0", |
30 | 30 | "gulp-concat": "^2.6.1", |
31 | 31 | "gulp-connect": "^5.6.1", |
32 | - "gulp-htmlmin": "5.0.1", | |
33 | - "gulp-jshint": "2.1.0", | |
34 | - "gulp-rename": "1.4.0", | |
35 | - "gulp-replace": "1.0.0", | |
32 | + "gulp-htmlmin": "^5.0.1", | |
33 | + "gulp-jshint": "^2.1.0", | |
34 | + "gulp-rename": "^1.4.0", | |
35 | + "gulp-replace": "^1.0.0", | |
36 | 36 | "gulp-sequence": "^1.0.0", |
37 | - "gulp-uglify": "3.0.1", | |
37 | + "gulp-uglify": "^3.0.1", | |
38 | 38 | "gulp-uglify-es": "^1.0.4", |
39 | 39 | "jasmine-core": "^3.3.0", |
40 | - "jquery": "3.3.1", | |
41 | - "jshint": "2.9.6", | |
40 | + "jquery": "^3.3.1", | |
41 | + "jshint": "^2.9.6", | |
42 | 42 | "leaflet": "^1.3.4", |
43 | 43 | "pre-commit": "^1.2.2", |
44 | - "pump": "3.0.0", | |
45 | - "ui-bootstrap4": "3.0.5" | |
44 | + "pump": "^3.0.0", | |
45 | + "ui-bootstrap4": "^3.0.5" | |
46 | 46 | } |
47 | 47 | } |
src/js/controller.js
... | ... | @@ -41,7 +41,7 @@ angular.module('focaAdminSeguimiento') .controller('focaAdminSeguimientoControll |
41 | 41 | getSeguimiento(); |
42 | 42 | }; |
43 | 43 | |
44 | - function getSeguimiento () { | |
44 | + function getSeguimiento() { | |
45 | 45 | var now = $scope.now; |
46 | 46 | var desde = new Date(new Date(now.setHours(0)).setMinutes(0)); |
47 | 47 | desde = desde.setDate(desde.getDate() - 1); |
src/js/osm-directive.js
... | ... | @@ -38,6 +38,7 @@ angular.module('focaAdminSeguimiento').directive('osm', function() { |
38 | 38 | if ($scope.parametros.individual) { |
39 | 39 | observacion += |
40 | 40 | 'Total: ' + $filter('currency')(marcador.notaPedido.total, '$'); |
41 | + observacion = 'Orden: ' + marcador.orden + '<br/>' + observacion; | |
41 | 42 | } else { |
42 | 43 | observacion += 'Cantidad de nota de pedido: ' + |
43 | 44 | marcador.cantidad + '<br/>'; |
... | ... | @@ -46,7 +47,12 @@ angular.module('focaAdminSeguimiento').directive('osm', function() { |
46 | 47 | } |
47 | 48 | } else { |
48 | 49 | observacion += 'Vehiculo: ' + |
49 | - marcador.remito.hojaRuta.idVehiculo + '<br/>'; | |
50 | + marcador.remito.hojaRuta.idVehiculo + ' - ' + | |
51 | + marcador.remito.hojaRuta.vehiculo.tractor + '<br/>'; | |
52 | + observacion += 'Transportista: ' + | |
53 | + marcador.remito.hojaRuta.transportista.NOM + '<br/>'; | |
54 | + observacion += 'Chofer: ' + | |
55 | + marcador.remito.hojaRuta.chofer.nombre + '<br/>'; | |
50 | 56 | observacion += 'Fecha: ' + |
51 | 57 | $filter('date')(marcador.fecha.slice(0,10), 'dd/MM/yyyy') + ' ' + |
52 | 58 | marcador.fecha.slice(11,19) + '<br/>'; |
... | ... | @@ -62,12 +68,13 @@ angular.module('focaAdminSeguimiento').directive('osm', function() { |
62 | 68 | marcador.remito.cliente.NOM + '<br/>'; |
63 | 69 | if ($scope.parametros.individual) { |
64 | 70 | observacion += 'Producto: ' + |
65 | - marcador.remito.articuloRemito.descripcion + '<br/>'; | |
71 | + marcador.remito.articulosRemito[0].descripcion + '<br/>'; | |
66 | 72 | observacion += 'Cantidad entregada: ' + |
67 | 73 | marcador.remito.carga + '<br/>'; |
74 | + observacion += 'Observaciones: ' + marcador.observaciones; | |
75 | + observacion = 'Orden: ' + marcador.orden + '<br/>' + observacion; | |
68 | 76 | } else { |
69 | - observacion += 'Cantidad de entregas: ' + | |
70 | - marcador.cantidad + '<br/>'; | |
77 | + observacion += 'Cantidad de entregas: ' + marcador.cantidad; | |
71 | 78 | } |
72 | 79 | } |
73 | 80 |