Formatting in FlightExporter
This commit is contained in:
parent
70f470d64e
commit
71f5d33af7
@ -37,16 +37,14 @@ class FlightExporter extends ImportExport
|
|||||||
|
|
||||||
// Modify special fields
|
// Modify special fields
|
||||||
$ret['airline'] = $ret['airline']->icao;
|
$ret['airline'] = $ret['airline']->icao;
|
||||||
// $ret['distance'] = $ret['distance'][config('phpvms.internal_units.distance')];
|
|
||||||
|
|
||||||
$ret['dpt_airport'] = $flight->dpt_airport_id;
|
$ret['dpt_airport'] = $flight->dpt_airport_id;
|
||||||
$ret['arr_airport'] = $flight->arr_airport_id;
|
$ret['arr_airport'] = $flight->arr_airport_id;
|
||||||
|
|
||||||
if ($flight->alt_airport) {
|
if ($flight->alt_airport) {
|
||||||
$ret['alt_airport'] = $flight->alt_airport_id;
|
$ret['alt_airport'] = $flight->alt_airport_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
$ret['days'] = $this->getDays($flight);
|
$ret['days'] = $this->getDays($flight);
|
||||||
|
|
||||||
$ret['fares'] = $this->getFares($flight);
|
$ret['fares'] = $this->getFares($flight);
|
||||||
$ret['fields'] = $this->getFields($flight);
|
$ret['fields'] = $this->getFields($flight);
|
||||||
$ret['subfleets'] = $this->getSubfleets($flight);
|
$ret['subfleets'] = $this->getSubfleets($flight);
|
||||||
|
Loading…
Reference in New Issue
Block a user