From c34e9306cfd1d25e98334bd73010fdfb214b252e Mon Sep 17 00:00:00 2001 From: "focp212@naver.com" Date: Thu, 20 Nov 2025 14:52:37 +0900 Subject: [PATCH] =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ui/section/amount-info-section.tsx | 45 ++++++++++++------- src/locales/ko.json | 6 +-- 2 files changed, 32 insertions(+), 19 deletions(-) diff --git a/src/entities/transaction/ui/section/amount-info-section.tsx b/src/entities/transaction/ui/section/amount-info-section.tsx index e090eb2..c3a156d 100644 --- a/src/entities/transaction/ui/section/amount-info-section.tsx +++ b/src/entities/transaction/ui/section/amount-info-section.tsx @@ -38,7 +38,6 @@ export const AmountInfoSection = ({ let newAmountInfo: Record | undefined = amountInfo; const subItems: Record> = { - mid: {name: t('transaction.fields.mid'), type: 'string'}, transactionRequestAmount: {name: t('transaction.fields.transactionRequestAmount'), type: 'number'}, transactionAmount: {name: t('transaction.fields.transactionAmount'), type: 'number'}, pointAmount: {name: t('transaction.fields.pointAmount'), type: 'number'}, @@ -58,21 +57,21 @@ export const AmountInfoSection = ({ // 신용카드 '01': ['transactionAmount', 'pointAmount', 'couponAmount', 'escrowFee'], // 계좌이체 - '02': ['mid', 'transactionRequestAmount', 'transactionAmount', 'escrowFee'], + '02': ['transactionRequestAmount', 'transactionAmount', 'escrowFee'], // 가상계좌 - '03': ['mid', 'transactionRequestAmount', 'transactionAmount'], + '03': ['transactionRequestAmount', 'transactionAmount'], // 휴대폰 - '05': ['mid', 'transactionRequestAmount', 'transactionAmount'], + '05': ['transactionRequestAmount', 'transactionAmount'], // 문화상품권 - '14': ['mid', 'transactionAmount'], + '14': ['transactionAmount'], // SSG머니 - '21': ['mid', 'transactionAmount'], + '21': ['transactionAmount'], // SSG은행계좌 - '24': ['mid', 'transactionAmount'], + '24': ['transactionAmount'], // 계좌간편결제 - '26': ['mid', 'transactionAmount', 'escrowFee'], + '26': ['transactionAmount', 'escrowFee'], // 티머니페이 - '31': ['mid', 'transactionAmount'], + '31': ['transactionAmount'], }; if(newAmountInfo?.partServiceCode === 'E015'){ openSubItems['01']?.push('paycoPointAmount'); @@ -279,13 +278,27 @@ export const AmountInfoSection = ({ t('home.money', { value: new Intl.NumberFormat('en-US').format(amountInfo?.transactionAmount || 0) }) } - + { (transactionCategory === TransactionCategory.AllTransaction) && + (serviceCode === '01' || serviceCode === '02' || serviceCode === '03' || serviceCode === '26') && + + } + { ((transactionCategory === TransactionCategory.CashReceipt) || + (transactionCategory === TransactionCategory.Escrow) || + (transactionCategory === TransactionCategory.Billing)) && + + } diff --git a/src/locales/ko.json b/src/locales/ko.json index 140512c..cde476c 100644 --- a/src/locales/ko.json +++ b/src/locales/ko.json @@ -653,9 +653,9 @@ "approvalRequestAmount": "승인요청금액", "transactionAmount": "거래금액", "creditCardAmount": "신용카드금액", - "cardAmount": "신용카드금액", - "pointAmount": "포인트금액", - "couponAmount": "쿠폰금액", + "cardAmount": "신용카드", + "pointAmount": "포인트", + "couponAmount": "쿠폰", "escrowFee": "에스크로수수료", "kakaoMoneyAmount": "카카오머니", "kakaoPointAmount": "카카오포인트",