Jump to content

Recommended Posts

Posted

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

  • 7 months later...
Posted

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

{

...............

  • Moderators
Posted

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
{

Posted

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

  • 4 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...