mitcheinfo Posted December 31, 2014 Report Posted December 31, 2014 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 Quote
Moderators servetas Posted January 3, 2015 Moderators Report Posted January 3, 2015 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. Quote
mitcheinfo Posted January 14, 2015 Author Report Posted January 14, 2015 Sorry but I do not fit, the rank does not update and flight number. An example is my signature. is the correct: Total Flight 740 Total Hours 1428.99 Quote
mitcheinfo Posted January 14, 2015 Author Report Posted January 14, 2015 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; Quote
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.