Add subfleet specific expenses, fixed bug for pirep fares #130 #136

This commit is contained in:
Nabeel Shahzad
2018-03-05 12:21:38 -06:00
parent bf94a20e57
commit 96e8fbfa78
12 changed files with 357 additions and 44 deletions

View File

@@ -27,11 +27,13 @@ class CreateSubfleetTables extends Migration
});
Schema::create('subfleet_expenses', function(Blueprint $table) {
$table->increments('id');
$table->unsignedBigInteger('subfleet_id');
$table->string('name', 50);
$table->unsignedDecimal('cost');
$table->unsignedDecimal('amount');
$table->timestamps();
$table->primary(['subfleet_id', 'name']);
$table->index('subfleet_id');
});
Schema::create('subfleet_fare', function (Blueprint $table) {