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