Merge branch 'dillon/accounting-bank-mapping' into development

This commit is contained in:
Dillon
2023-04-12 05:03:13 +08:00
9 changed files with 63 additions and 35 deletions
@@ -28,6 +28,7 @@ class CreateStatementTransactionsTable extends Migration
$table->string('teller_id')->nullable();
$table->string('branch_channel');
$table->string('transaction_code');
$table->string('end_balance')->nullable();
$table->string('owner_system')->nullable();
$table->string('owner_type')->nullable();
$table->unsignedBigInteger('owner_id')->nullable();
@@ -16,8 +16,8 @@ class CreateStatementTransactionsDetailsTable extends Migration
Schema::create('statement_transactions_details', function (Blueprint $table) {
$table->id();
$table->date('date');
$table->unsignedBigInteger('statement_transactions_id');
$table->foreign('statement_transactions_id')->references('id')->on('statement_transactions');
$table->unsignedBigInteger('statement_transaction_id');
$table->foreign('statement_transaction_id')->references('id')->on('statement_transactions');
// $table->string('description');
// $table->decimal('credit', 8, 2);
// $table->decimal('debit', 8, 2);