수정
This commit is contained in:
@@ -38,7 +38,6 @@ export const AmountInfoSection = ({
|
|||||||
|
|
||||||
let newAmountInfo: Record<string, any> | undefined = amountInfo;
|
let newAmountInfo: Record<string, any> | undefined = amountInfo;
|
||||||
const subItems: Record<string, Record<string, string>> = {
|
const subItems: Record<string, Record<string, string>> = {
|
||||||
mid: {name: t('transaction.fields.mid'), type: 'string'},
|
|
||||||
transactionRequestAmount: {name: t('transaction.fields.transactionRequestAmount'), type: 'number'},
|
transactionRequestAmount: {name: t('transaction.fields.transactionRequestAmount'), type: 'number'},
|
||||||
transactionAmount: {name: t('transaction.fields.transactionAmount'), type: 'number'},
|
transactionAmount: {name: t('transaction.fields.transactionAmount'), type: 'number'},
|
||||||
pointAmount: {name: t('transaction.fields.pointAmount'), type: 'number'},
|
pointAmount: {name: t('transaction.fields.pointAmount'), type: 'number'},
|
||||||
@@ -58,21 +57,21 @@ export const AmountInfoSection = ({
|
|||||||
// 신용카드
|
// 신용카드
|
||||||
'01': ['transactionAmount', 'pointAmount', 'couponAmount', 'escrowFee'],
|
'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머니
|
// SSG머니
|
||||||
'21': ['mid', 'transactionAmount'],
|
'21': ['transactionAmount'],
|
||||||
// SSG은행계좌
|
// SSG은행계좌
|
||||||
'24': ['mid', 'transactionAmount'],
|
'24': ['transactionAmount'],
|
||||||
// 계좌간편결제
|
// 계좌간편결제
|
||||||
'26': ['mid', 'transactionAmount', 'escrowFee'],
|
'26': ['transactionAmount', 'escrowFee'],
|
||||||
// 티머니페이
|
// 티머니페이
|
||||||
'31': ['mid', 'transactionAmount'],
|
'31': ['transactionAmount'],
|
||||||
};
|
};
|
||||||
if(newAmountInfo?.partServiceCode === 'E015'){
|
if(newAmountInfo?.partServiceCode === 'E015'){
|
||||||
openSubItems['01']?.push('paycoPointAmount');
|
openSubItems['01']?.push('paycoPointAmount');
|
||||||
@@ -279,6 +278,8 @@ export const AmountInfoSection = ({
|
|||||||
t('home.money', { value: new Intl.NumberFormat('en-US').format(amountInfo?.transactionAmount || 0) })
|
t('home.money', { value: new Intl.NumberFormat('en-US').format(amountInfo?.transactionAmount || 0) })
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
{ (transactionCategory === TransactionCategory.AllTransaction) &&
|
||||||
|
(serviceCode === '01' || serviceCode === '02' || serviceCode === '03' || serviceCode === '26') &&
|
||||||
<button
|
<button
|
||||||
className="chip-btn"
|
className="chip-btn"
|
||||||
type="button"
|
type="button"
|
||||||
@@ -286,6 +287,18 @@ export const AmountInfoSection = ({
|
|||||||
>
|
>
|
||||||
{t('transaction.sections.amountDetail')} <SectionTitleArrow isOpen={ isOpen }></SectionTitleArrow>
|
{t('transaction.sections.amountDetail')} <SectionTitleArrow isOpen={ isOpen }></SectionTitleArrow>
|
||||||
</button>
|
</button>
|
||||||
|
}
|
||||||
|
{ ((transactionCategory === TransactionCategory.CashReceipt) ||
|
||||||
|
(transactionCategory === TransactionCategory.Escrow) ||
|
||||||
|
(transactionCategory === TransactionCategory.Billing)) &&
|
||||||
|
<button
|
||||||
|
className="chip-btn"
|
||||||
|
type="button"
|
||||||
|
onClick={ () => onClickToSetShowInfo() }
|
||||||
|
>
|
||||||
|
{t('transaction.sections.amountDetail')} <SectionTitleArrow isOpen={ isOpen }></SectionTitleArrow>
|
||||||
|
</button>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<SlideDown className={'my-dropdown-slidedown'}>
|
<SlideDown className={'my-dropdown-slidedown'}>
|
||||||
|
|||||||
@@ -653,9 +653,9 @@
|
|||||||
"approvalRequestAmount": "승인요청금액",
|
"approvalRequestAmount": "승인요청금액",
|
||||||
"transactionAmount": "거래금액",
|
"transactionAmount": "거래금액",
|
||||||
"creditCardAmount": "신용카드금액",
|
"creditCardAmount": "신용카드금액",
|
||||||
"cardAmount": "신용카드금액",
|
"cardAmount": "신용카드",
|
||||||
"pointAmount": "포인트금액",
|
"pointAmount": "포인트",
|
||||||
"couponAmount": "쿠폰금액",
|
"couponAmount": "쿠폰",
|
||||||
"escrowFee": "에스크로수수료",
|
"escrowFee": "에스크로수수료",
|
||||||
"kakaoMoneyAmount": "카카오머니",
|
"kakaoMoneyAmount": "카카오머니",
|
||||||
"kakaoPointAmount": "카카오포인트",
|
"kakaoPointAmount": "카카오포인트",
|
||||||
|
|||||||
Reference in New Issue
Block a user