Jump to content

Recommended Posts

Posted

Hi all, I need help.

We've cleaned up the database PIREPs, but now it seems that every time a pilot reports a flight number and time of flight pilot started from scratch.

You know how I can fix to keep adding, and changing table pilot but a new flight report back to the counter.

Thank You

  • Moderators
Posted

One choise will be to add the "lost" hours to the pilot's transfered hours. Then your system will count the transfered hours + each pirep's flight time.

  • 2 weeks later...
Posted

What I have already solved,

PilotData.class

if (Config::Get('TRANSFER_HOURS_IN_RANKS') === true) {

$totalhours = $pilot->totalhours + $pilot->transferhours;

} else {

$totalhours = $pilot->totalhours + $pilot->transferhours;

}

# Configure what we want to show on each line

$output = array();

$output[] = $pilotcode . ' ' . $pilot->firstname . ' ' . $pilot->lastname;

$output[] = $pilot->rank . ', ' . $pilot->hub;

$output[] = 'Total Flights: ' . (floatval($pilot->totalflights) + floatval($pilot->payadjust));

$output[] = 'Total Hours: ' . $totalhours;

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...