Add/implement subfleet cost_block_hour and block_time for PIREP API
This commit is contained in:
@@ -15,6 +15,8 @@ class CreateSubfleetTables extends Migration
|
||||
$table->unsignedInteger('airline_id')->nullable();
|
||||
$table->string('type', 50)->unique();
|
||||
$table->string('name', 50);
|
||||
$table->unsignedDecimal('cost_block_hour');
|
||||
$table->unsignedDecimal('cost_delay_minute');
|
||||
$table->unsignedTinyInteger('fuel_type')->nullable();
|
||||
$table->unsignedDecimal('ground_handling_multiplier')->nullable()->default(100);
|
||||
$table->unsignedDecimal('cargo_capacity')->nullable();
|
||||
|
||||
@@ -28,6 +28,7 @@ class CreatePirepTables extends Migration
|
||||
$table->unsignedInteger('level')->nullable();
|
||||
$table->unsignedDecimal('distance')->nullable();
|
||||
$table->unsignedDecimal('planned_distance')->nullable();
|
||||
$table->unsignedInteger('block_time')->nullable();
|
||||
$table->unsignedInteger('flight_time')->nullable();
|
||||
$table->unsignedInteger('planned_flight_time')->nullable();
|
||||
$table->unsignedDecimal('zfw')->nullable();
|
||||
|
||||
@@ -265,16 +265,19 @@ subfleets:
|
||||
airline_id: 1
|
||||
name: 747-43X RB211-524G
|
||||
type: 744-3X-RB211
|
||||
cost_block_hour: 1000
|
||||
ground_handling_multiplier: 200
|
||||
- id: 2
|
||||
airline_id: 1
|
||||
name: 777-222ER GE90-76B
|
||||
type: 772-22ER-GE90-76B
|
||||
cost_block_hour: 500
|
||||
ground_handling_multiplier: 150
|
||||
- id: 3
|
||||
airline_id: 1
|
||||
name: 777-367 ER GE90-115B
|
||||
type: 772-36ER-GE90-115B
|
||||
cost_block_hour: 100
|
||||
ground_handling_multiplier: 150
|
||||
|
||||
# add a few mods to aircraft and fares
|
||||
@@ -384,6 +387,7 @@ pireps:
|
||||
state: 1 # accepted
|
||||
status: 0
|
||||
source: 1
|
||||
flight_type: J
|
||||
route: KAUS SID TNV J87 IAH J2 LCH J22 MEI J239 ATL J52 AJFEB J14 BYJAC Q60 JAXSN J14 COLIN J61 HUBBS J55 SIE STAR KJFK
|
||||
notes: just a pilot report
|
||||
created_at: NOW
|
||||
@@ -397,6 +401,7 @@ pireps:
|
||||
arr_airport_id: LGRP
|
||||
flight_time: 180 # 6 hours
|
||||
state: 1
|
||||
flight_type: J
|
||||
route: PLMMR2 SPA Q22 BEARI FAK PHLBO3
|
||||
notes: just a pilot report
|
||||
source: 1 # pending
|
||||
@@ -413,6 +418,7 @@ pireps:
|
||||
flight_time: 180 # 6 hours
|
||||
state: 1 # pending
|
||||
source: 0 # manual
|
||||
flight_type: J
|
||||
route: PLMMR2 SPA Q22 BEARI FAK PHLBO3
|
||||
notes: just a pilot report
|
||||
created_at: NOW
|
||||
@@ -610,9 +616,9 @@ journal_transactions:
|
||||
tags: '"pilot_pay"'
|
||||
ref_class: App\Models\Pirep
|
||||
ref_class_id: pirepid_1
|
||||
created_at: '2018-03-06 12:34:15'
|
||||
updated_at: '2018-03-06 12:34:15'
|
||||
post_date: '2018-03-06 12:34:15'
|
||||
created_at: now
|
||||
updated_at: now
|
||||
post_date: now
|
||||
-
|
||||
id: ed516367-eeb9-4a09-bfb7-531ec4be2f93
|
||||
transaction_group: Fares
|
||||
@@ -624,9 +630,9 @@ journal_transactions:
|
||||
tags: '"fare"'
|
||||
ref_class: App\Models\Pirep
|
||||
ref_class_id: pirepid_1
|
||||
created_at: '2018-03-06 12:34:15'
|
||||
updated_at: '2018-03-06 12:34:15'
|
||||
post_date: '2018-03-06 12:34:15'
|
||||
created_at: now
|
||||
updated_at: now
|
||||
post_date: now
|
||||
-
|
||||
id: f3f8585e-894c-4491-b19b-d07b6ad20208
|
||||
transaction_group: 'Ground Handling'
|
||||
@@ -638,6 +644,21 @@ journal_transactions:
|
||||
tags: '"ground_handling"'
|
||||
ref_class: App\Models\Pirep
|
||||
ref_class_id: pirepid_1
|
||||
created_at: '2018-03-06 12:34:15'
|
||||
updated_at: '2018-03-06 12:34:15'
|
||||
post_date: '2018-03-06 12:34:15'
|
||||
created_at: now
|
||||
updated_at: now
|
||||
post_date: now
|
||||
|
||||
-
|
||||
id: 1bd1616c-eaa4-4ab9-b5c1-441004ceef14
|
||||
transaction_group: 'Subfleet 744-3X-RB211'
|
||||
journal_id: 1
|
||||
credit: null
|
||||
debit: 300000
|
||||
currency: USD
|
||||
memo: 'Subfleet 744-3X-RB211: Block Time Cost'
|
||||
tags: '"subfleet"'
|
||||
ref_class: App\Models\Pirep
|
||||
ref_class_id: pirepid_1
|
||||
created_at: now
|
||||
updated_at: now
|
||||
post_date: now
|
||||
|
||||
Reference in New Issue
Block a user