mitcheinfo Posted December 31, 2014 Report Share 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 Link to comment Share on other sites More sharing options...
mitcheinfo Posted January 3, 2015 Author Report Share Posted January 3, 2015 any suggestions Quote Link to comment Share on other sites More sharing options...
Moderators servetas Posted January 3, 2015 Moderators Report Share 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 Link to comment Share on other sites More sharing options...
mitcheinfo Posted January 14, 2015 Author Report Share 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 Link to comment Share on other sites More sharing options...
mitcheinfo Posted January 14, 2015 Author Report Share 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 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.