diff --git a/app/Models/ProcessedStatement.php b/app/Models/ProcessedStatement.php index 9d0e6be..db43ff8 100644 --- a/app/Models/ProcessedStatement.php +++ b/app/Models/ProcessedStatement.php @@ -17,6 +17,6 @@ 'description', 'end_balance', 'actual_date', - 'no_receipt' + 'recipt_no' ]; } diff --git a/database/migrations/2025_07_14_022029_add_no_receipt_to_processed_statements_table.php b/database/migrations/2025_07_14_022029_add_no_receipt_to_processed_statements_table.php index 93dc6e5..e013aa2 100644 --- a/database/migrations/2025_07_14_022029_add_no_receipt_to_processed_statements_table.php +++ b/database/migrations/2025_07_14_022029_add_no_receipt_to_processed_statements_table.php @@ -12,10 +12,10 @@ return new class extends Migration public function up(): void { Schema::table('processed_statements', function (Blueprint $table) { - $table->string('no_receipt')->nullable()->after('reference_number'); + $table->string('recipt_no')->nullable()->after('reference_number'); // Menambahkan index untuk field no_receipt jika diperlukan untuk pencarian - $table->index('no_receipt'); + $table->index('recipt_no'); }); } @@ -25,8 +25,8 @@ return new class extends Migration public function down(): void { Schema::table('processed_statements', function (Blueprint $table) { - $table->dropIndex(['no_receipt']); - $table->dropColumn('no_receipt'); + $table->dropIndex(['recipt_no']); + $table->dropColumn('recipt_no'); }); } };