lorlandi Posted June 10, 2012 Report Share Posted June 10, 2012 Hi all, some weeks ago i have two aircraft with the same total flight time (838 hours), both of them have more than 1000 hours, the other aircraft less than 1000 hours have the total flight time correct. I did the query directly in the database for all aircrafts and there is indeed an error in the flight times of these two aircract. Boeing 747-400 ER Freighter (N269TP) Total Flights: 201 Total Distance: 492820 Average Flight Distance: 2451.84 Total Hours: 838 instead 1113.36 Average Flight Time: 5.54 Boeing 737-700 Converter (N271TP) Total Flights: 109 Total Distance: 37748 Average Flight Distance: 346.31 Total Hours: 140 checked and ok Average Flight Time: 1.08 Boeing 767-300 ER Freighter (N303TP) Total Flights: 254 Total Distance: 459809 Average Flight Distance: 1810.27 Total Hours: 838 instead 1094.16 Average Flight Time: 4.31 These data are from the admin panel Aircraft Reports.Any suggestions on this error or a change to the formula for calculating the total flight time. Many thanks Quote Link to comment Share on other sites More sharing options...
flyalaska Posted June 10, 2012 Report Share Posted June 10, 2012 Are you using FSACARS by chance? That was a glitch with FSACARS. Quote Link to comment Share on other sites More sharing options...
lorlandi Posted June 10, 2012 Author Report Share Posted June 10, 2012 We have a custom kacars, also i have checked all flights time on data base for both aircrafts and are correctly formated ex. (01.20.14) Quote Link to comment Share on other sites More sharing options...
mattia Posted February 2, 2013 Report Share Posted February 2, 2013 same problem Quote Link to comment Share on other sites More sharing options...
Strider Posted February 6, 2013 Report Share Posted February 6, 2013 If you want to remove fscars and support for it, just delete the fsacars.php file in the acars module folder. Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted February 6, 2013 Moderators Report Share Posted February 6, 2013 I created my own class file and changed the tpl. AircraftUsage.zip 1 Quote Link to comment Share on other sites More sharing options...
Strider Posted February 6, 2013 Report Share Posted February 6, 2013 What is different about your one, then the one that comes with phpvms? Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted February 6, 2013 Moderators Report Share Posted February 6, 2013 Mine's adding all the hours correctly unless the submitted PIREP has empty field in flight hour. Quote Link to comment Share on other sites More sharing options...
Strider Posted February 6, 2013 Report Share Posted February 6, 2013 ahh. ok Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted February 6, 2013 Moderators Report Share Posted February 6, 2013 Sorry! Add the following to the reports_aircraft.tpl right after "<?php" : $acstats = AircraftUsage::aircrafts(); Quote Link to comment Share on other sites More sharing options...
mattia Posted February 6, 2013 Report Share Posted February 6, 2013 Hi Pakho i have this problem Warning: Invalid argument supplied for foreach() in xxxxx/iv/admin/templates/reports_aircraft.tpl on line 4 <h3>Aircraft Reports</h3> <?php $acstats = AircraftUsage::aircrafts(); foreach($acstats as $stat)----- this is line 4 { ............... Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted February 6, 2013 Moderators Report Share Posted February 6, 2013 Change this: $acstats = AircraftUsage::aircrafts(); foreach($acstats as $stat)----- this is line 4 { To this: $stats = AircraftUsage::aircrafts(); foreach($stats as $stat)----- this is line 4 { Quote Link to comment Share on other sites More sharing options...
mattia Posted February 7, 2013 Report Share Posted February 7, 2013 Now work but i my reports list all aircraft BARON KING AIR 350(I-PPBK) Total Flights: 4729 Total Distance: Average Flight Distance: 0 Total Hours: 0 Average Flight Time: 0 only flight work Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted February 7, 2013 Moderators Report Share Posted February 7, 2013 Are you using the default reports_aircraft.tpl? Quote Link to comment Share on other sites More sharing options...
mattia Posted February 8, 2013 Report Share Posted February 8, 2013 yes sir i use your file Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted February 8, 2013 Moderators Report Share Posted February 8, 2013 Where did you put the file I provided? Quote Link to comment Share on other sites More sharing options...
mattia Posted February 9, 2013 Report Share Posted February 9, 2013 admin/templates core/common Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted February 9, 2013 Moderators Report Share Posted February 9, 2013 Did you replace the tpl with the one you had in admin/templates? Quote Link to comment Share on other sites More sharing options...
mattia Posted February 10, 2013 Report Share Posted February 10, 2013 yes sir replace Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted February 10, 2013 Moderators Report Share Posted February 10, 2013 how many aircraft do you have in your fleet? The default reports_aircraft.tpl, was it showing before replacement? Quote Link to comment Share on other sites More sharing options...
mattia Posted February 10, 2013 Report Share Posted February 10, 2013 have 40 aircraft, and the default file work Quote Link to comment Share on other sites More sharing options...
Thomasha Posted March 3, 2017 Report Share Posted March 3, 2017 On 6.2.2013 at 4:02 PM, Parkho said: I created my own class file and changed the tpl. AircraftUsage.zip Worked perfect thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.