Request more values for getPilotStatus

Information about the VA integration pack
Post Reply
Vjacheslav
Flight Attendant
Posts: 170
Joined: Thu Nov 20, 2008 10:32 am
Location: EVRA
Contact:

Request more values for getPilotStatus

Post by Vjacheslav » Sun Sep 25, 2016 11:07 pm

Hello Joe!
Please add (if it possible) more return values for function getPilotStatus &va_id=XXXX&pilot_id=XXXX

new data:
zwf, dow, pax_income, cargo_income

Thank you very much.

Vjacheslav
Flight Attendant
Posts: 170
Joined: Thu Nov 20, 2008 10:32 am
Location: EVRA
Contact:

Re: Request more values for getPilotStatus

Post by Vjacheslav » Mon Sep 26, 2016 12:27 am

at now, income value return pax income in booked or active flight

User avatar
joefremont
FSAirlines Developer
Posts: 2008
Joined: Tue May 16, 2006 5:46 am
Location: KSFO

Re: Request more values for getPilotStatus

Post by joefremont » Mon Sep 26, 2016 3:45 am

The income is the expected revenue from the booked flight, before expenses. I'm not sure I want to add all that data to the getPilotStatus function, and we don't store separate cargo and pax income in the database when you book the flight, I can give you acdb_id, PAX_Business, PAX_First from that you can lookup the aircraft data and calculate the income. Expect it in a couple of days.
Image

Vjacheslav
Flight Attendant
Posts: 170
Joined: Thu Nov 20, 2008 10:32 am
Location: EVRA
Contact:

Re: Request more values for getPilotStatus

Post by Vjacheslav » Mon Sep 26, 2016 9:09 am

Ok. Maybe there is another way get this data for ZFW and cargo income before flight?

Image

Vjacheslav
Flight Attendant
Posts: 170
Joined: Thu Nov 20, 2008 10:32 am
Location: EVRA
Contact:

Re: Request more values for getPilotStatus

Post by Vjacheslav » Mon Sep 26, 2016 7:56 pm

fixed upload image

User avatar
joefremont
FSAirlines Developer
Posts: 2008
Joined: Tue May 16, 2006 5:46 am
Location: KSFO

Re: Request more values for getPilotStatus

Post by joefremont » Tue Sep 27, 2016 5:05 pm

Instead try using function=getAircraftDBData&acdb_id={id}
Image

Vjacheslav
Flight Attendant
Posts: 170
Joined: Thu Nov 20, 2008 10:32 am
Location: EVRA
Contact:

Re: Request more values for getPilotStatus

Post by Vjacheslav » Wed Sep 28, 2016 2:29 pm

joefremont wrote:Instead try using function=getAircraftDBData&acdb_id={id}
ok, this way for calculate ZFW
im get DOW with getAircraftDBData and get PAX (calculate in kg 1 pax = 82kg) and CARGO with getPilotStatus and calculate baggage (20kg per 1 pax?)

DOW + (PAX * 82) + (PAX * 20) + CARGO = ZFW?

How can I get CARGO Income value?

Thanks

Post Reply