Hi i was wondering if anyone out there would be able to create a script so that i can set the landing rate limit to say -500fpm and if the landing rate is higher than this it deducts the pilot pay as maintainance charge or fine
The functions are all already in phpVMS to do this, you just need to add a little direction.
In the PIREPData class in the filePIREP function add a directive that IF the LANDINGRATE is less than -300 (or whatever number you want) then direct the class to use the PilotData class function updateProfile to deduct whatever pay you want to from the pilot. In between you will have to use the getPilotPay function in PilotData to get the current pay to start your equation.
The functions are all already in phpVMS to do this, you just need to add a little direction.
In the PIREPData class in the filePIREP function add a directive that IF the LANDINGRATE is less than -300 (or whatever number you want) then direct the class to use the PilotData class function updateProfile to deduct whatever pay you want to from the pilot. In between you will have to use the getPilotPay function in PilotData to get the current pay to start your equation.
Sounds good but i am not much good with code i am slowly learneing would some one be able to post the code
In my opinion this isn’t realistic at all. Pilots don’t get fined or have their pay docked if they have a little incodent, its actually illegal to doc someone’s pay like that. If you have that many pilots landing that badly maybe they need some training, not fined.