[FIXED] Salaries

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

It does it as 11 minutes, not .11 fraction of the hour, so that may be the error. I can’t remember. I’ll check it though

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

I haven’t looked at this yet, but it’ll be a fix on my end

Fixed in latest

Thanks for your help !

Stéphane