Jump to content

Recommended Posts

Posted (edited)

I think i found a bug, if im adding a new schedule....

my pilots always paid for each hour flight....O.K. in my case 20$/h

 

but if i enter a price in the field "pay for flight" (example "10") then the pilot get the normal hour-rate + the amount of the "pay for flight" (10$/h) field

example: pilot flying 90min then the pilot receive 30$ + 15$ = 45$ ???

 

it should be 15 $ only,  or the amount which i filled out in the "pay for flight" field, or im wrong??

Edited by Rene
  • Moderators
Posted

Could you please go to your "database_prefix"pireps database table and let us now what is the value of paytype for this specific pirep you are referring to?

Posted (edited)

hi servestas....thx for reply

the paytype value is to 99% "1" and sometimes "2"

 

i think i got a "2" if i entered a price in the "pay for flight" price....but im not sure....

 

 

 

Edited by Rene
Posted (edited)

just tested it...if i entered a price in the "pay for flight" the automatic the pireps are set to paytype "2"

i found out now, if i change in the PIREP-database to paytype"1" before accepting, then all is ok and it seems the hourly payment with the filled price is calculated correctly.

 

so its seems, its a calculating error (bug) in paytype "2" :wacko:

Edited by Rene
  • Moderators
Posted

Can you open your app.config.php and check if PILOT_PAY_HOURLY and PILOT_PAY_SCHEDULE are defined? There should be something like:

define('PILOT_PAY_HOURLY', 1);
define('PILOT_PAY_SCHEDULE', 2);

 

  • 2 weeks later...

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