Expand flight types to match IATA SSIM

This commit is contained in:
Nabeel Shahzad
2018-03-29 11:34:36 -05:00
parent ec553f06c8
commit b31384f429
7 changed files with 53 additions and 14093 deletions

View File

@@ -547,11 +547,11 @@ class Importer
# Set the flight type
$row->flighttype = strtoupper($row->flighttype);
if ($row->flighttype === 'P') {
$attrs['flight_type'] = FlightType::PASSENGER;
$attrs['flight_type'] = FlightType::SCHED_PAX;
} elseif ($row->flighttype === 'C') {
$attrs['flight_type'] = FlightType::CARGO;
$attrs['flight_type'] = FlightType::SCHED_CARGO;
} else {
$attrs['flight_type'] = FlightType::CHARTER;
$attrs['flight_type'] = FlightType::CHARTER_PAX_ONLY;
}
# Set the flight level of the PIREP is set