Jump to content

Recommended Posts

Posted

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.

  • Administrators
Posted

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"

Posted

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.

  • 1 month later...
Posted

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?

  • 7 months later...

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