수정
This commit is contained in:
@@ -18,19 +18,18 @@ export const AmountInfoSection = ({
|
||||
|
||||
const subItems: Record<string, Record<string, string>> = {
|
||||
mid: {name: 'MID', type: 'string'},
|
||||
amount: {name: '거래금액', type: 'number'},
|
||||
cardAmount: {name: '신용카드금액', type: 'number'},
|
||||
transactionAmount: {name: '거래금액', type: 'number'},
|
||||
escrowFee: {name: '에스크로수수료', type: 'number'},
|
||||
|
||||
pointAmount: {name: '포인트금액', type: 'number'},
|
||||
couponAmount: {name: '쿠폰금액', type: 'number'},
|
||||
kakaoMoney: {name: '카카오머니', type: 'number'},
|
||||
kakaoPoint: {name: '카카오포인트', type: 'number'},
|
||||
kakaoInstantDiscount: {name: '카카오 즉시할인', type: 'number'},
|
||||
naverPoint: {name: '네이버 포인트', type: 'number'},
|
||||
tossMoney: {name: '토스머니', type: 'number'},
|
||||
tossDiscount: {name: '토스할인', type: 'number'},
|
||||
paycoPoint: {name: '페이코 포인트', type: 'number'},
|
||||
paycoCoupon: {name: '페이코 쿠폰', type: 'number'},
|
||||
escrowFee: {name: '에스크로수수료', type: 'number'}
|
||||
partServiceCode: {name: '간편결제코드', type: 'string' },
|
||||
kakaoDiscountAmount: {name: '카카오 즉시할인', type: 'number'},
|
||||
tossDiscountAmount: {name: '토스할인', type: 'number'},
|
||||
multiPointAmount: {name: '멀티포인트금액', type: 'number'},
|
||||
multiCouponAmount: {name: '멀티쿠폰금액', type: 'number'},
|
||||
receiptAmount: {name: '영수증금액', type: 'number'},
|
||||
cupDepositAmount: {name: '컵보증금', type: 'number'},
|
||||
};
|
||||
|
||||
const showTop = ['01', '02', '03', '26'];
|
||||
@@ -42,21 +41,21 @@ export const AmountInfoSection = ({
|
||||
'tossMoney', 'tossDiscount', 'paycoPoint', 'paycoCoupon'
|
||||
],
|
||||
// 계좌이체
|
||||
'02': ['amount', 'mid', 'escrowFee'],
|
||||
'02': ['mid', 'transactionAmount', 'escrowFee'],
|
||||
// 가상계좌
|
||||
'03': ['amount', 'mid'],
|
||||
'03': ['mid', 'transactionAmount'],
|
||||
// 휴대폰
|
||||
'04': ['amount', 'mid'],
|
||||
// 계좌간편결제
|
||||
'26': ['amount', 'mid', 'escrowFee'],
|
||||
// SSG머니
|
||||
'21': ['amount', 'mid'],
|
||||
// SSG은행계좌
|
||||
'24': ['amount', 'mid'],
|
||||
'05': ['mid', 'transactionAmount'],
|
||||
// 문화상품권
|
||||
'14': ['amount', 'mid'],
|
||||
'14': ['mid', 'transactionAmount'],
|
||||
// SSG머니
|
||||
'21': ['mid', 'transactionAmount'],
|
||||
// SSG은행계좌
|
||||
'24': ['mid', 'transactionAmount'],
|
||||
// 계좌간편결제
|
||||
'26': ['mid', 'transactionAmount', 'escrowFee'],
|
||||
// 티머니페이
|
||||
'31': ['amount', 'mid'],
|
||||
'31': ['mid', 'transactionAmount'],
|
||||
};
|
||||
|
||||
const checkValue = (val: any) => {
|
||||
@@ -120,7 +119,7 @@ export const AmountInfoSection = ({
|
||||
<div className="txn-amount">
|
||||
<div className="value">
|
||||
<NumericFormat
|
||||
value={ amountInfo?.amount }
|
||||
value={ amountInfo?.transactionAmount }
|
||||
thousandSeparator
|
||||
displayType="text"
|
||||
></NumericFormat>
|
||||
|
||||
Reference in New Issue
Block a user