From 6422cbef5728dd18dfe22f1cc02e72e7ae0a8f60 Mon Sep 17 00:00:00 2001 From: Christoph Krey Date: Sat, 14 Apr 2018 18:48:41 +0200 Subject: [NEW] Feature Request: Add Odometer to Summary, Trips, and Stops Reports #652 --- web/app/view/ReportController.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'web/app/view') diff --git a/web/app/view/ReportController.js b/web/app/view/ReportController.js index 42e099d..9ec75ce 100644 --- a/web/app/view/ReportController.js +++ b/web/app/view/ReportController.js @@ -520,6 +520,14 @@ Ext.define('Traccar.view.ReportController', { text: Strings.sharedDistance, 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', @@ -547,6 +555,10 @@ Ext.define('Traccar.view.ReportController', { dataIndex: 'startTime', xtype: 'datecolumn', renderer: Traccar.AttributeFormatter.getFormatter('startTime') + }, { + text: Strings.reportStartOdometer, + dataIndex: 'startOdometer', + renderer: Traccar.AttributeFormatter.getFormatter('distance'), }, { text: Strings.reportStartAddress, dataIndex: 'startAddress', @@ -556,6 +568,10 @@ Ext.define('Traccar.view.ReportController', { dataIndex: 'endTime', xtype: 'datecolumn', renderer: Traccar.AttributeFormatter.getFormatter('endTime') + }, { + text: Strings.reportEndOdometer, + dataIndex: 'endOdometer', + renderer: Traccar.AttributeFormatter.getFormatter('distance'), }, { text: Strings.reportEndAddress, dataIndex: 'endAddress', @@ -595,6 +611,10 @@ Ext.define('Traccar.view.ReportController', { dataIndex: 'startTime', xtype: 'datecolumn', renderer: Traccar.AttributeFormatter.getFormatter('startTime') + }, { + text: Strings.reportStartOdometer, + dataIndex: 'startOdometer', + renderer: Traccar.AttributeFormatter.getFormatter('distance'), }, { text: Strings.positionAddress, dataIndex: 'address', -- cgit v1.2.3