Strider Posted March 9, 2009 Report Posted March 9, 2009 Everytime a pilot of mine files a pirep and i accept it, it is doubled in the roster, one guy flew once, had 6.3 on the roster then flew again and got 10.5, it came out as 27.3 is there anything i can do to fix this? If so which file do I have to edit to fix it? Cheers Dan C Quote
maxwaldorf Posted March 9, 2009 Report Posted March 9, 2009 I do have the same issue... Nabeel, could you tell me where the flight hours are being calculated so I can check the calculation process ? Cheers ! Quote
Administrators Nabeel Posted March 9, 2009 Administrators Report Posted March 9, 2009 I'm looking into this, but core/classes/util.class.php, line 50 the AddTime() function, though I have a feeling it's somewhere else time being double-added, where I'm missing. Some of the code is unweildy and begs a refactoring Quote
maxwaldorf Posted March 9, 2009 Report Posted March 9, 2009 Just tell me if you need to double check some stuff... Quote
Administrators Nabeel Posted March 10, 2009 Administrators Report Posted March 10, 2009 Will do; it's odd because my unit testing seems to indicates that it works, so I'm trying to debug in some detail. Wait - are you guys using the beta copy? Quote
Strider Posted March 10, 2009 Author Report Posted March 10, 2009 I am using version 1.2.628 doesn't say beta, i downloaded it from the downloads section of this site, so i don't think it is the beta copy. Cheers Dan C Quote
Administrators Nabeel Posted March 10, 2009 Administrators Report Posted March 10, 2009 Ok, the hours problem is fixed in the beta, it's in downloads.phpvms.net Quote
Kayloconner Posted March 10, 2009 Report Posted March 10, 2009 Forgive me my ignorance ... can someone tell me how do I get that file update beta (downloads.phpvms.net) is this the download website phpvms Update Install??? Thanks guys. Quote
Administrators Nabeel Posted March 10, 2009 Administrators Report Posted March 10, 2009 No problem, it's the phpvms.beta.zip Quote
maxwaldorf Posted March 10, 2009 Report Posted March 10, 2009 Can we use beta in production or there are other ustable stuff ? I don't want to have other surprises ! Cheers Quote
Administrators Nabeel Posted March 10, 2009 Administrators Report Posted March 10, 2009 I try to keep each beta build in working condition, except for new features which may not be always complete Quote
maxwaldorf Posted March 11, 2009 Report Posted March 11, 2009 Nabeel, please check your last PM as I posted you a modification for Utils.class As I am no coder, I need your check but I think it works ! Cheers Quote
Administrators Nabeel Posted March 12, 2009 Administrators Report Posted March 12, 2009 It seems as though that did the trick, I've posted it into the beta and committed it, thanks!! Helps having fresh eyes look at it Quote
Nagelfar Posted March 15, 2009 Report Posted March 15, 2009 Dear Nabeel We updated our Version to 1.2.637 but we still got the problem that the system "doubles" the hours for some reason. Is there any new Version or bugfix? Please help Thank you! Nagelfar Quote
Administrators Nabeel Posted March 15, 2009 Administrators Report Posted March 15, 2009 I haven't had the chance to figure that bug out yet, but it's on my list. There's a ticket in the bug tracker, if you subscribe to it, you'll know once it's fixed Do you have details? Which kind of PIREPs, meaning FSACARs or manual, etc Quote
RogerB Posted March 16, 2009 Report Posted March 16, 2009 Ok, I have noticed that when a pilot files a flight the system adds 1 to their flights, then when I accept the PIREP the system adds the same flight again........Its being added 2 times. Quote
RogerB Posted March 16, 2009 Report Posted March 16, 2009 its also doubling the pilot pay............ Quote
Administrators Nabeel Posted March 16, 2009 Administrators Report Posted March 16, 2009 Alright, give it a try (beta build) Sending admin/modules/PIREPAdmin/PIREPAdmin.php Sending core/common/PIREPData.class.php Transmitting file data .. Committed revision 638. Quote
Nagelfar Posted March 16, 2009 Report Posted March 16, 2009 it only happens with fsacars pireps - the manual one are ok Quote
RogerB Posted March 16, 2009 Report Posted March 16, 2009 Ok, I just did a flight, the system is not doing the addition correctly, flight hours are wrong and pilot pay was off again......It did only add 1 flight like it was supposed to, so that is fixed. Quote
Administrators Nabeel Posted March 16, 2009 Administrators Report Posted March 16, 2009 Yeah pilot pay is off, I need to recalc that. Flight hours may still be wrong from before, but if you recalc them it should be correct Quote
RogerB Posted March 17, 2009 Report Posted March 17, 2009 I calculated the hours manually and did a recalc in the admin panel..... Quote
Administrators Nabeel Posted March 17, 2009 Administrators Report Posted March 17, 2009 Wwere they off? By how much? Quote
Administrators Nabeel Posted March 19, 2009 Administrators Report Posted March 19, 2009 Check the latest beta, another update to this, hopefully it puts it to rest for good Quote
RogerB Posted March 19, 2009 Report Posted March 19, 2009 I just remembered that I had a rejected flight, that might be why....My bad......LOL Quote
Administrators Nabeel Posted March 19, 2009 Administrators Report Posted March 19, 2009 lol... a few bugs were fixed though. Who know a damn function to add times would be so troublesome 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.