parent
a7981c0a87
commit
2ecf366670
@ -31,7 +31,6 @@ class Subfleet extends Model
|
||||
'airline_id',
|
||||
'type',
|
||||
'name',
|
||||
'turn_time',
|
||||
'fuel_type',
|
||||
'cost_block_hour',
|
||||
'cost_delay_minute',
|
||||
|
@ -19,10 +19,17 @@ class SubfleetImporter extends ImportExport
|
||||
* Should match the database fields, for the most part
|
||||
*/
|
||||
public static $columns = [
|
||||
'airline' => 'required',
|
||||
'type' => 'required',
|
||||
'name' => 'required',
|
||||
'fares' => 'nullable',
|
||||
'airline' => 'required',
|
||||
'type' => 'required',
|
||||
'name' => 'required',
|
||||
'fuel_type' => 'nullable',
|
||||
'cost_block_hour' => 'nullable',
|
||||
'cost_delay_minute' => 'nullable',
|
||||
'ground_handling_multiplier' => 'nullable',
|
||||
'cargo_capacity' => 'nullable',
|
||||
'fuel_capacity' => 'nullable',
|
||||
'gross_weight' => 'nullable',
|
||||
'fares' => 'nullable',
|
||||
];
|
||||
|
||||
private $fareSvc;
|
||||
|
@ -1,3 +1,3 @@
|
||||
airline,type,name,fares
|
||||
VMS,A32X,Airbus A320,Y;B?capacity=100&price=500%
|
||||
VMS, ,Boeing 747-400,Y;B?capacity=100&price=500%
|
||||
airline,type,name,fuel_type,cost_block_hour,cost_delay_minute,ground_handling_multiplier,cargo_capacity,fuel_capacity,gross_weight,fares
|
||||
VMS,A32X,"Airbus A320",,1000,0,200,,,,Y;B?capacity=100&price=500%
|
||||
VMS, ,"Boeing 747-400",,1000,0,200,,,,Y;B?capacity=100&price=500%
|
||||
|
|
Loading…
Reference in New Issue
Block a user