Author Topic: [VAM2.6] Pilot salary calculated as income  (Read 838 times)

Timothee

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
[VAM2.6] Pilot salary calculated as income
« on: December 08, 2016, 09:36:53 AM »
Hey

This has been reported before for older versions but it doesn't seem to be fixed. The pilot salary is inserted as a positiv number in va_finances but instead should be negativ.
The following line in acept_flight.php needs to be changed:
Code: [Select]
$sql = "insert into va_finances (amount,parameter_id,finance_date,gvauser_id,description,report_type,report_id) values (-$quantity, '99995',now(),$pilot ,'$fligth_type:$departure - $arrival','$type', '$flight')";


VAM

  • Administrator
  • Hero Member
  • *****
  • Posts: 1328
    • View Profile
    • virtual Airlines Manager
Re: [VAM2.6] Pilot salary calculated as income
« Reply #1 on: December 10, 2016, 05:19:26 PM »
Hey

This has been reported before for older versions but it doesn't seem to be fixed. The pilot salary is inserted as a positiv number in va_finances but instead should be negativ.
The following line in acept_flight.php needs to be changed:
Code: [Select]
$sql = "insert into va_finances (amount,parameter_id,finance_date,gvauser_id,description,report_type,report_id) values (-$quantity, '99995',now(),$pilot ,'$fligth_type:$departure - $arrival','$type', '$flight')";

thanks for the tip, actually in VAM 2.6 nothing related to finances has been changed, I postponed it to 2.7
VAM Creator and programmer.