Page 1 of 1

Request more values for getPilotStatus

Posted: Sun Sep 25, 2016 11:07 pm
by Vjacheslav
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.

Re: Request more values for getPilotStatus

Posted: Mon Sep 26, 2016 12:27 am
by Vjacheslav
at now, income value return pax income in booked or active flight

Re: Request more values for getPilotStatus

Posted: Mon Sep 26, 2016 3:45 am
by joefremont
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.

Re: Request more values for getPilotStatus

Posted: Mon Sep 26, 2016 9:09 am
by Vjacheslav
Ok. Maybe there is another way get this data for ZFW and cargo income before flight?

Image

Re: Request more values for getPilotStatus

Posted: Mon Sep 26, 2016 7:56 pm
by Vjacheslav
fixed upload image

Re: Request more values for getPilotStatus

Posted: Tue Sep 27, 2016 5:05 pm
by joefremont
Instead try using function=getAircraftDBData&acdb_id={id}

Re: Request more values for getPilotStatus

Posted: Wed Sep 28, 2016 2:29 pm
by Vjacheslav
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