Commit 265c5cdfa8d2643cc8e342d54b72e7d36e75a23e

Authored by Hacene SI HADJ MOHAND
1 parent 791d4b0a

ok

Showing 1 changed file with 10 additions and 0 deletions   Show diff stats
js/app/models/TimeTable.js
@@ -46,6 +46,16 @@ Ext.define('amdaModel.Interval', { @@ -46,6 +46,16 @@ Ext.define('amdaModel.Interval', {
46 return value; 46 return value;
47 } 47 }
48 }, 48 },
  49 + {
  50 + name: 'durationDay',
  51 + type: 'float',
  52 + convert: function(value, rec){
  53 + if (rec.get('stop') && rec.get('start') && (rec.get('stop')-rec.get('start'))>=0) {
  54 + return (rec.get('stop') - rec.get('start'))/3600000.0/24.0;
  55 + }
  56 + },
  57 + persist: false
  58 + },
49 { 59 {
50 name: 'durationHour', 60 name: 'durationHour',
51 type: 'float', 61 type: 'float',