diff --git a/database/migrations/2026_03_04_100200_update_expense_approval_form_body_template.php b/database/migrations/2026_03_04_100200_update_expense_approval_form_body_template.php new file mode 100644 index 0000000..c2c9ef7 --- /dev/null +++ b/database/migrations/2026_03_04_100200_update_expense_approval_form_body_template.php @@ -0,0 +1,180 @@ +지 출 결 의 서 + + + + + + + + + +
지출형식 + ☐ 법인카드    ☐ 송금    ☐ 현금/가지급정산    ☐ 복지카드 +
세금계산서 + ☐ 일반    ☐ 이월발행 +
+ + + + + + + + + + + + + +
작성일자지출부서이름
제목
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
년/월/일내용금액업체명지급은행계좌번호예금주비고
합 계
+

첨부서류:

+HTML; + + DB::table('approval_forms') + ->where('tenant_id', 1) + ->where('code', 'expense') + ->update([ + 'body_template' => $bodyTemplate, + 'updated_at' => now(), + ]); + } + + public function down(): void + { + // 이전 body_template으로 복원 + $oldBodyTemplate = <<<'HTML' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
지출일자부서
거래처
계정과목적요금액비고
합계
지출 사유
+HTML; + + DB::table('approval_forms') + ->where('tenant_id', 1) + ->where('code', 'expense') + ->update([ + 'body_template' => $oldBodyTemplate, + 'updated_at' => now(), + ]); + } +};