chris.edde Posted October 8, 2010 Report Posted October 8, 2010 Hi, does anyone have a code for a load sheet in the pilot briefing or does anyone know where I can get the auto-generated pax and load for a flight? The system generates automatically Paxnumber and load when clicking on Send Pirep but I'd like to have it before starting a flight in the briefing in order to load the aircraft correctly. Thanks, Chris. Quote
Administrators simpilot Posted October 8, 2010 Administrators Report Posted October 8, 2010 The pax count for pax flights is calculated by multiplying the pax count in the aircraft description times -> Config::Set('LOAD_FACTOR', '82'); # %age load factor within your local.config.php file. This example would create a load count of your aircraft pax count from the database times 82%. This function will print the load count -> echo FinanceData::getLoadCount($aircraft_id, $sched->flighttype); $aircraft_id is the db id of the aircraft and $sched->flighttype is the single digit flighttype "P,C, or H" Quote
chris.edde Posted October 9, 2010 Author Report Posted October 9, 2010 The pax count for pax flights is calculated by multiplying the pax count in the aircraft description times -> Config::Set('LOAD_FACTOR', '82'); # %age load factor within your local.config.php file. This example would create a load count of your aircraft pax count from the database times 82%. This function will print the load count -> echo FinanceData::getLoadCount($aircraft_id, $sched->flighttype); $aircraft_id is the db id of the aircraft and $sched->flighttype is the single digit flighttype "P,C, or H" Hey, thanks very much. I'll try it. Quote
chris.edde Posted November 27, 2010 Author Report Posted November 27, 2010 Hi, I tried it and first of all, it seems to work. But not like i'd wish it. The Pax-Numbers generated are all the time between 160 and 190. I guess it does not generate the 82% of the aircrafts maximum pax number, but a random number btw. 160 and 190. How can I fix it? Quote
stuartpb Posted July 18, 2011 Report Posted July 18, 2011 Did anyone ever get this working? I've been trying for a few days to get pax counts showing in the schedules brief, without success. 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.