Author Topic: [VAM2.6.2] Wrong count of charter flights in personal statistics  (Read 729 times)

Timothee

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
[VAM2.6.2] Wrong count of charter flights in personal statistics
« on: December 19, 2016, 01:44:38 AM »
Hey

I think something is wrong with the calculation of charter flights showing in the personal statistics.

We have one pilot with 75 regular flights, including 7 rejected flights. Couting of rejected flights is disabled.
The personal statistics shows correctly 68 total flights. But it also shows -14 charter flights.
In the calculations I noticed the rejected flights are subtracted twice which leads to this number.

The issue was found in pilot_profile_stats.php and pilot_profile_details_stats.php.

I wasn't able to correct this problem yet. I replaced the calculation with the one from VAM 2.5.2, which was working fine, but I'm sure there is a reason why you changed it in this version, so maybe you could have a look at it.

Regards

VAM

  • Administrator
  • Hero Member
  • *****
  • Posts: 1328
    • View Profile
    • virtual Airlines Manager
Re: [VAM2.6.2] Wrong count of charter flights in personal statistics
« Reply #1 on: January 02, 2017, 12:03:27 PM »
Hey

I think something is wrong with the calculation of charter flights showing in the personal statistics.

We have one pilot with 75 regular flights, including 7 rejected flights. Couting of rejected flights is disabled.
The personal statistics shows correctly 68 total flights. But it also shows -14 charter flights.
In the calculations I noticed the rejected flights are subtracted twice which leads to this number.

The issue was found in pilot_profile_stats.php and pilot_profile_details_stats.php.

I wasn't able to correct this problem yet. I replaced the calculation with the one from VAM 2.5.2, which was working fine, but I'm sure there is a reason why you changed it in this version, so maybe you could have a look at it.

Regards

sorry for late reply , I was some days off due to XMAS holidays :-) I will have  look
VAM Creator and programmer.