Jump to content

[FIXED] Salaries


stephanepa38

Recommended Posts

Hello

I have some errors in the salaries of the pilots.

Example :

A pilot flew 1 hour and 11 minutes. FSACARS records 1h11 and phpVMS use 1.11 for the hours of flight. The salary for this pilote per hour is 15 euros.

So the normal salary is 15/60 = 0.25 euro per minute of flight.

In this case, the salary must be 71X0.25 = 17.75 euros

The problem is that phpVMS do this calcul :

[hours of flight] X [salary per hour] = salary for this flight

1.11 X 15 = 16.65 euros whereas the salaty must be 17.75 euros.

Can you do an patch to delete this error ?

Thanks

Stéphane

Link to comment
Share on other sites

Hello

I've done some tests.

In the MySQL database, the flight hours are OK and the salary per hour is correctly set to 15 euros per hour.

I have done 3 flights.

1 h 42 = 102 minutes

1 h 06 = 66 minutes

1 h 03 = 63 minutes

TOTAL : 3 h 51 = 231 minutes

The salary is 15 euros per hour, so it is 0.25 euro per minute.

Normally, I must have this salary for these three flights :

231 minutes X 0.25 = 57.75 euros

The problem is that phpVMS shows me 52.65 euros for these three flights.

I found the calcul he has done :

3.51 X 15 = 52.65 euros

But 3 hours 51 minutes is not 3.51 hour. 3.51 hour is 210.6 minutes, so it is different than 231 minutes.

How can I do to correct this error ?

Thanks

Stéphane

Link to comment
Share on other sites

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