From f538963be5fcee2280b22050c8a51475c3a984f8 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Tue, 6 Jun 2017 11:43:09 +0500 Subject: - Reworked fields and attributes formatting - Convert position and reports fields in the model - Add hidden columns to Route report - Add Number attributes to possible chart types --- web/app/model/ReportSummary.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'web/app/model/ReportSummary.js') 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' -- cgit v1.2.3