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.
Request more values for getPilotStatus
-
- Flight Attendant
- Posts: 177
- Joined: Thu Nov 20, 2008 10:32 am
- Location: EVRA
- Contact:
-
- Flight Attendant
- Posts: 177
- Joined: Thu Nov 20, 2008 10:32 am
- Location: EVRA
- Contact:
Re: Request more values for getPilotStatus
at now, income value return pax income in booked or active flight
- joefremont
- FSAirlines Developer
- Posts: 3845
- Joined: Tue May 16, 2006 5:46 am
- Location: KSFO
Re: Request more values for getPilotStatus
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.
I've sworn an oath of solitude until the pestilence is purged from the lands.
-
- Flight Attendant
- Posts: 177
- Joined: Thu Nov 20, 2008 10:32 am
- Location: EVRA
- Contact:
Re: Request more values for getPilotStatus
Ok. Maybe there is another way get this data for ZFW and cargo income before flight?
-
- Flight Attendant
- Posts: 177
- Joined: Thu Nov 20, 2008 10:32 am
- Location: EVRA
- Contact:
- joefremont
- FSAirlines Developer
- Posts: 3845
- Joined: Tue May 16, 2006 5:46 am
- Location: KSFO
Re: Request more values for getPilotStatus
Instead try using function=getAircraftDBData&acdb_id={id}
I've sworn an oath of solitude until the pestilence is purged from the lands.
-
- Flight Attendant
- Posts: 177
- Joined: Thu Nov 20, 2008 10:32 am
- Location: EVRA
- Contact:
Re: Request more values for getPilotStatus
ok, this way for calculate ZFWjoefremont wrote:Instead try using function=getAircraftDBData&acdb_id={id}
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