aboutsummaryrefslogtreecommitdiff
path: root/web/app/model/ReportSummary.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-06-07 08:21:06 -0700
committerGitHub <noreply@github.com>2017-06-07 08:21:06 -0700
commita330ae09293c62aae381cb2c7f36cfa76b86e813 (patch)
tree26478c08fc6f7136ec8355d13af2a1bbf97207dc /web/app/model/ReportSummary.js
parentb6f2faab0d35d54189fefd7567b6310023c3ad7b (diff)
parente04a02921ea015d4f4fe69c1c3f1813a07be9cf4 (diff)
downloadetbsa-traccar-web-a330ae09293c62aae381cb2c7f36cfa76b86e813.tar.gz
etbsa-traccar-web-a330ae09293c62aae381cb2c7f36cfa76b86e813.tar.bz2
etbsa-traccar-web-a330ae09293c62aae381cb2c7f36cfa76b86e813.zip
Merge pull request #501 from Abyss777/position_attributes_reports
Known position attributes for reports and charts
Diffstat (limited to 'web/app/model/ReportSummary.js')
-rw-r--r--web/app/model/ReportSummary.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/web/app/model/ReportSummary.js b/web/app/model/ReportSummary.js
index d236ecd..5cfbdcd 100644
--- a/web/app/model/ReportSummary.js
+++ b/web/app/model/ReportSummary.js
@@ -28,13 +28,16 @@ Ext.define('Traccar.model.ReportSummary', {
type: 'string'
}, {
name: 'maxSpeed',
- type: 'float'
+ type: 'float',
+ convert: Traccar.AttributeFormatter.getConverter('speed')
}, {
name: 'averageSpeed',
- type: 'float'
+ type: 'float',
+ convert: Traccar.AttributeFormatter.getConverter('speed')
}, {
name: 'distance',
- type: 'float'
+ type: 'float',
+ convert: Traccar.AttributeFormatter.getConverter('distance')
}, {
name: 'engineHours',
type: 'int'