Jump to content

Recommended Posts

Posted

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

  • Administrators
Posted

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

  • Administrators
Posted

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?

  • Administrators
Posted

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 :D

Posted

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

  • Administrators
Posted

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

Posted

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.

  • Administrators
Posted

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.

Posted

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.

  • Administrators
Posted

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

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