#11 inline editing for pivot values for price/cost/capacity on fares
This commit is contained in:
@@ -17,7 +17,7 @@ class CreateFaresTable extends Migration
|
||||
$table->increments('id');
|
||||
$table->string('code');
|
||||
$table->string('name');
|
||||
$table->float('price');
|
||||
$table->float('price')->default(0.0);
|
||||
$table->float('cost')->default(0.0);
|
||||
$table->integer('capacity')->default(0);
|
||||
$table->string('notes')->nullable();
|
||||
@@ -32,7 +32,7 @@ class CreateFaresTable extends Migration
|
||||
$table->integer('fare_id');
|
||||
$table->float('price')->nullable();
|
||||
$table->float('cost')->nullable();
|
||||
$table->float('capacity')->nullable();
|
||||
$table->integer('capacity')->nullable();
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
});
|
||||
|
||||
@@ -31,16 +31,20 @@ airlines:
|
||||
|
||||
airports:
|
||||
- icao: KAUS
|
||||
name: Austin-Bergstrom International Airport
|
||||
name: Austin-Bergstrom
|
||||
location: Austin, Texas, USA
|
||||
lat: 30.1945278
|
||||
lon: -97.6698889
|
||||
- icao: KJFK
|
||||
name: John F Kennedy International Airport
|
||||
name: John F Kennedy
|
||||
location: New York, New York, USA
|
||||
lat: 40.6399257
|
||||
lon: -73.7786950
|
||||
|
||||
- icao: EGLL
|
||||
name: London Heathrow
|
||||
location: London, England
|
||||
lat: 51.4775
|
||||
lon: -0.4614
|
||||
#
|
||||
aircraft_classes:
|
||||
- id: 1
|
||||
@@ -70,12 +74,35 @@ fares:
|
||||
price: 100
|
||||
capacity: 200
|
||||
- id: 2
|
||||
code: F
|
||||
name: First-Class
|
||||
code: B
|
||||
name: Business
|
||||
price: 500
|
||||
capacity: 10
|
||||
- id: 3
|
||||
code: F
|
||||
name: First-Class
|
||||
price: 800
|
||||
capacity: 5
|
||||
|
||||
#
|
||||
# add a few mods to aircraft and fares
|
||||
aircraft_fare:
|
||||
|
||||
# Fare classes on the 747
|
||||
- aircraft_id: 1
|
||||
fare_id: 1
|
||||
price: 200
|
||||
capacity: 400
|
||||
- aircraft_id: 1
|
||||
fare_id: 2
|
||||
capacity: 20
|
||||
- aircraft_id: 1
|
||||
fare_id: 3
|
||||
price: 1000
|
||||
capacity: 10
|
||||
|
||||
# Fare classes on the 777
|
||||
- aircraft_id: 2
|
||||
fare_id: 1
|
||||
- aircraft_id: 2
|
||||
fare_id: 3
|
||||
capacity: 10
|
||||
|
||||
Reference in New Issue
Block a user