aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Krey <c@ckrey.de>2018-08-06 18:06:16 +0200
committerGitHub <noreply@github.com>2018-08-06 18:06:16 +0200
commit4b9726dd8dd083060810d9472fa8d2187e6c9a0f (patch)
tree2cd712b68fdb2d409ab64ca5df580fd5a2cf078d
parent5a41451ab3558f0ffd43f44a65d34b9590331c5d (diff)
parent5defdfeb901434458dbcbc4ca7eb0c164a6f71c0 (diff)
downloadtrackermap-web-4b9726dd8dd083060810d9472fa8d2187e6c9a0f.tar.gz
trackermap-web-4b9726dd8dd083060810d9472fa8d2187e6c9a0f.tar.bz2
trackermap-web-4b9726dd8dd083060810d9472fa8d2187e6c9a0f.zip
Merge pull request #4 from ckrey/OdometerInReports316
Odometer in reports316
-rw-r--r--web/app/model/ReportStop.js4
-rw-r--r--web/app/model/ReportSummary.js8
-rw-r--r--web/app/model/ReportTrip.js8
-rw-r--r--web/app/view/ReportController.js20
-rw-r--r--web/l10n/de.json2
-rw-r--r--web/l10n/en.json2
6 files changed, 44 insertions, 0 deletions
diff --git a/web/app/model/ReportStop.js b/web/app/model/ReportStop.js
index 1867f73b..9aaa58b0 100644
--- a/web/app/model/ReportStop.js
+++ b/web/app/model/ReportStop.js
@@ -34,6 +34,10 @@ Ext.define('Traccar.model.ReportStop', {
type: 'date',
dateFormat: 'c'
}, {
+ name: 'startOdometer',
+ type: 'float',
+ convert: Traccar.AttributeFormatter.getConverter('distance')
+ }, {
name: 'address',
type: 'string'
}, {
diff --git a/web/app/model/ReportSummary.js b/web/app/model/ReportSummary.js
index 4bc78731..dcc0365c 100644
--- a/web/app/model/ReportSummary.js
+++ b/web/app/model/ReportSummary.js
@@ -39,6 +39,14 @@ Ext.define('Traccar.model.ReportSummary', {
type: 'float',
convert: Traccar.AttributeFormatter.getConverter('distance')
}, {
+ name: 'startOdometer',
+ type: 'float',
+ convert: Traccar.AttributeFormatter.getConverter('distance')
+ }, {
+ name: 'endOdometer',
+ type: 'float',
+ convert: Traccar.AttributeFormatter.getConverter('distance')
+ }, {
name: 'engineHours',
type: 'int'
}, {
diff --git a/web/app/model/ReportTrip.js b/web/app/model/ReportTrip.js
index 9004b86d..9d45fc87 100644
--- a/web/app/model/ReportTrip.js
+++ b/web/app/model/ReportTrip.js
@@ -39,6 +39,14 @@ Ext.define('Traccar.model.ReportTrip', {
type: 'float',
convert: Traccar.AttributeFormatter.getConverter('distance')
}, {
+ name: 'startOdometer',
+ type: 'float',
+ convert: Traccar.AttributeFormatter.getConverter('distance')
+ }, {
+ name: 'endOdometer',
+ type: 'float',
+ convert: Traccar.AttributeFormatter.getConverter('distance')
+ }, {
name: 'duration',
type: 'int'
}, {
diff --git a/web/app/view/ReportController.js b/web/app/view/ReportController.js
index 72e7e37e..6079da77 100644
--- a/web/app/view/ReportController.js
+++ b/web/app/view/ReportController.js
@@ -539,6 +539,14 @@ Ext.define('Traccar.view.ReportController', {
dataIndex: 'distance',
renderer: Traccar.AttributeFormatter.getFormatter('distance')
}, {
+ text: Strings.reportStartOdometer,
+ dataIndex: 'startOdometer',
+ renderer: Traccar.AttributeFormatter.getFormatter('distance'),
+ }, {
+ text: Strings.reportEndOdometer,
+ dataIndex: 'endOdometer',
+ renderer: Traccar.AttributeFormatter.getFormatter('distance'),
+ }, {
text: Strings.reportAverageSpeed,
dataIndex: 'averageSpeed',
renderer: Traccar.AttributeFormatter.getFormatter('speed')
@@ -566,6 +574,10 @@ Ext.define('Traccar.view.ReportController', {
xtype: 'datecolumn',
renderer: Traccar.AttributeFormatter.getFormatter('startTime')
}, {
+ text: Strings.reportStartOdometer,
+ dataIndex: 'startOdometer',
+ renderer: Traccar.AttributeFormatter.getFormatter('distance'),
+ }, {
text: Strings.reportStartAddress,
dataIndex: 'startAddress',
renderer: Traccar.AttributeFormatter.getFormatter('address')
@@ -575,6 +587,10 @@ Ext.define('Traccar.view.ReportController', {
xtype: 'datecolumn',
renderer: Traccar.AttributeFormatter.getFormatter('endTime')
}, {
+ text: Strings.reportEndOdometer,
+ dataIndex: 'endOdometer',
+ renderer: Traccar.AttributeFormatter.getFormatter('distance'),
+ }, {
text: Strings.reportEndAddress,
dataIndex: 'endAddress',
renderer: Traccar.AttributeFormatter.getFormatter('address')
@@ -614,6 +630,10 @@ Ext.define('Traccar.view.ReportController', {
xtype: 'datecolumn',
renderer: Traccar.AttributeFormatter.getFormatter('startTime')
}, {
+ text: Strings.reportStartOdometer,
+ dataIndex: 'startOdometer',
+ renderer: Traccar.AttributeFormatter.getFormatter('distance'),
+ }, {
text: Strings.positionAddress,
dataIndex: 'address',
renderer: Traccar.AttributeFormatter.getFormatter('address')
diff --git a/web/l10n/de.json b/web/l10n/de.json
index 8cae0ac0..ca7cf3f1 100644
--- a/web/l10n/de.json
+++ b/web/l10n/de.json
@@ -389,6 +389,8 @@
"reportEndTime": "Zielzeit",
"reportEndAddress": "Zielort",
"reportSpentFuel": "Kraftstoffverbrauch",
+ "reportStartOdometer": "Kilometerzähler Start",
+ "reportEndOdometer": "Kilometerzähler Ende",
"statisticsTitle": "Statistiken",
"statisticsCaptureTime": "Zeitpunkt",
"statisticsActiveUsers": "Aktive Benutzer",
diff --git a/web/l10n/en.json b/web/l10n/en.json
index c7fb1e70..2d91ae29 100644
--- a/web/l10n/en.json
+++ b/web/l10n/en.json
@@ -389,6 +389,8 @@
"reportEndTime": "End Time",
"reportEndAddress": "End Address",
"reportSpentFuel": "Spent Fuel",
+ "reportStartOdometer": "Odometer Start",
+ "reportEndOdometer": "Odometer End",
"statisticsTitle": "Statistics",
"statisticsCaptureTime": "Capture Time",
"statisticsActiveUsers": "Active Users",