Finance overview page added to admin with monthly breakdown #130
This commit is contained in:
@@ -30,6 +30,7 @@ class CreateSubfleetTables extends Migration
|
||||
$table->increments('id');
|
||||
$table->unsignedBigInteger('subfleet_id');
|
||||
$table->string('name', 50);
|
||||
$table->unsignedTinyInteger('type'); # ExpenseType
|
||||
$table->unsignedDecimal('amount');
|
||||
$table->timestamps();
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@ class CreateJournalsTable extends Migration
|
||||
Schema::create('journals', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->unsignedInteger('ledger_id')->nullable();
|
||||
$table->unsignedTinyInteger('type')->default(0);
|
||||
$table->bigInteger('balance')->default(0);
|
||||
$table->string('currency', 5);
|
||||
$table->nullableMorphs('morphed');
|
||||
|
||||
Reference in New Issue
Block a user