From 44079f0f0e3a6bd96eba96bf964084ef0455668e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Thu, 5 Feb 2026 18:08:01 +0900 Subject: [PATCH] =?UTF-8?q?feat:=EC=9E=AC=EB=AC=B4=EA=B4=80=EB=A6=AC=20?= =?UTF-8?q?=EC=BB=AC=EB=9F=BC=20=EC=B6=94=EA=B0=80=20=EB=A7=88=EC=9D=B4?= =?UTF-8?q?=EA=B7=B8=EB=A0=88=EC=9D=B4=EC=85=98=20(tax=5Ftype,=20tax=5Finv?= =?UTF-8?q?oice=5Fissued,=20deduction=5Ftype)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.5 --- ...600000_add_tax_type_and_payable_fields.php | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 database/migrations/2026_02_05_600000_add_tax_type_and_payable_fields.php diff --git a/database/migrations/2026_02_05_600000_add_tax_type_and_payable_fields.php b/database/migrations/2026_02_05_600000_add_tax_type_and_payable_fields.php new file mode 100644 index 0000000..9ce568c --- /dev/null +++ b/database/migrations/2026_02_05_600000_add_tax_type_and_payable_fields.php @@ -0,0 +1,41 @@ +string('tax_type', 20)->default('taxable')->after('record_type'); + }); + + // payables: tax_invoice_issued 컬럼 추가 + Schema::table('payables', function (Blueprint $table) { + $table->boolean('tax_invoice_issued')->default(false)->after('memo'); + }); + + // card_transactions: deduction_type 컬럼 추가 (공제/불공제 구분) + Schema::table('card_transactions', function (Blueprint $table) { + $table->string('deduction_type', 20)->default('deductible')->after('status'); + }); + } + + public function down(): void + { + Schema::table('sales_records', function (Blueprint $table) { + $table->dropColumn('tax_type'); + }); + + Schema::table('payables', function (Blueprint $table) { + $table->dropColumn('tax_invoice_issued'); + }); + + Schema::table('card_transactions', function (Blueprint $table) { + $table->dropColumn('deduction_type'); + }); + } +};