skylineVirtual Posted October 3, 2013 Report Posted October 3, 2013 We launched our new system, which is based on phpvms yesterday and took entered the hours and flights the pilots had already flown into the database (not into the column transfer hours but into the real totalhours column). Now those hours get deleted after the first flight is accepted. Is there a solution to this or am I doing something wrong. Thanks in advance. Lauritz Quote
mseiwald Posted October 3, 2013 Report Posted October 3, 2013 The totalhours get calculated from the flighttime in your pireps. All your previous hours must be entered in the transfer hours field. Quote
skylineVirtual Posted October 3, 2013 Author Report Posted October 3, 2013 Ok, thanks for the fast response. The weird thing is that the method I used is working for some users. But if the total hours get calculated by the flighttime of the pirep is there a way to have the rank set by all the hours (transfer + pirep hours) or is it done this way anyway? Quote
mseiwald Posted October 3, 2013 Report Posted October 3, 2013 yeah there is a setting for it in the local.config.php # If you want to count transfer hours in rank calculations Config::Set('TRANSFER_HOURS_IN_RANKS', true); Quote
skylineVirtual Posted October 4, 2013 Author Report Posted October 4, 2013 Ok thanks. Something else has come to my mind, as our system uses the hours out of the column total hours pretty often and we'd have to change some things. Is there a function somewhere that calculates the value for total hours once the flights get sent (or accepted). If this is the case couldn't I just add the hours out of transfer hours in there? That would save us some work Quote
mseiwald Posted October 4, 2013 Report Posted October 4, 2013 Hm you can look for the functions in PilotData.class.php but i'm pretty sure there are more than just 1 function that would need to be updated. I honestly wouldnt do it that way. Just sum the amount of both fields on output. Quote
skylineVirtual Posted October 4, 2013 Author Report Posted October 4, 2013 Yeah I tried changing the functions this morning but I didn't have very much success with it so I'm going to go with the transfer method. But I did add a colum for transfer flights. Quote
mseiwald Posted October 4, 2013 Report Posted October 4, 2013 Where did you add that column? And why? There was already a transferhours column. Or do you mean the flight count? Quote
skylineVirtual Posted October 5, 2013 Author Report Posted October 5, 2013 I just added it as a column to the phpvms pilots database to add transferflights (not hours) to the profile. This way the pilots can transfer their flown flights as well 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.