대출은 지출·이체의 출처가 아니라 상환 대상 → 계좌 종류(출금) 선택지에서 대출 숨김. 이체 입금 종류·상환 대상(대출/카드)은 그대로 유지. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -345,6 +345,8 @@ const WALLET_KINDS = [
|
|||||||
{ value: 'MINUS', label: '마이너스' },
|
{ value: 'MINUS', label: '마이너스' },
|
||||||
{ value: 'INVEST', label: '증권' },
|
{ value: 'INVEST', label: '증권' },
|
||||||
]
|
]
|
||||||
|
// 출금/결제 계좌 종류 뱃지에서는 대출 제외 — 대출은 지출·이체의 '출처'가 아니라 상환 대상
|
||||||
|
const FROM_WALLET_KINDS = WALLET_KINDS.filter((k) => k.value !== 'LOAN')
|
||||||
const TYPES = [
|
const TYPES = [
|
||||||
{ value: 'EXPENSE', label: '지출', cls: 'chip-expense' },
|
{ value: 'EXPENSE', label: '지출', cls: 'chip-expense' },
|
||||||
{ value: 'INCOME', label: '수입', cls: 'chip-income' },
|
{ value: 'INCOME', label: '수입', cls: 'chip-income' },
|
||||||
@@ -1131,7 +1133,7 @@ onMounted(async () => {
|
|||||||
<div class="field">
|
<div class="field">
|
||||||
<span class="field-label">계좌 종류</span>
|
<span class="field-label">계좌 종류</span>
|
||||||
<div class="wallet-chips">
|
<div class="wallet-chips">
|
||||||
<button v-for="k in WALLET_KINDS" :key="k.value" type="button"
|
<button v-for="k in FROM_WALLET_KINDS" :key="k.value" type="button"
|
||||||
class="chip" :class="{ active: form.walletKind === k.value }"
|
class="chip" :class="{ active: form.walletKind === k.value }"
|
||||||
:disabled="submitting" @click="form.walletKind = k.value; onWalletKindChange()">
|
:disabled="submitting" @click="form.walletKind = k.value; onWalletKindChange()">
|
||||||
{{ k.label }}
|
{{ k.label }}
|
||||||
|
|||||||
Reference in New Issue
Block a user