From f4c08de0e496f8399b43f05c5f5f72c2ed5ff4a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Wed, 4 Mar 2026 20:54:03 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20[approval]=20=EC=B9=B4=EB=93=9C/?= =?UTF-8?q?=EA=B3=84=EC=A2=8C=201=EA=B0=9C=EC=9D=BC=20=EB=95=8C=20?= =?UTF-8?q?=EC=9E=90=EB=8F=99=20=EC=84=A0=ED=83=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/approvals/partials/_expense-form.blade.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/resources/views/approvals/partials/_expense-form.blade.php b/resources/views/approvals/partials/_expense-form.blade.php index e2619cb8..c3e7da45 100644 --- a/resources/views/approvals/partials/_expense-form.blade.php +++ b/resources/views/approvals/partials/_expense-form.blade.php @@ -370,9 +370,12 @@ function makeItem(data) { }, initAutoSelect() { - if (this.formData.expense_type === 'transfer' && !this.formData.selected_account) { + if (this.formData.expense_type === 'transfer' && !this.formData.selected_account && this.accounts.length > 0) { const primary = this.accounts.find(a => a.is_primary); - if (primary) this.selectAccount(primary); + this.selectAccount(primary || this.accounts[0]); + } + if (this.formData.expense_type === 'corporate_card' && !this.formData.selected_card && this.cards.length === 1) { + this.selectCard(this.cards[0]); } },