amount info 수정
This commit is contained in:
@@ -36,11 +36,7 @@ export const AmountInfoSection = ({
|
||||
|
||||
const openSubItems: Record<string, Array<string>> = {
|
||||
// 신용카드
|
||||
'01': ['transactionAmount', 'pointAmount', 'couponAmount',
|
||||
'escrowFee', 'kakaoMoneyAmount', 'kakaoPointAmount',
|
||||
'kakaoDiscountAmount', 'naverPointAmount', 'tossMoneyAmount',
|
||||
'tossDiscountAmount', 'paycoPointAmount', 'paycoCouponAmount'
|
||||
],
|
||||
'01': ['transactionAmount', 'pointAmount', 'couponAmount', 'escrowFee'],
|
||||
// 계좌이체
|
||||
'02': ['mid', 'transactionRequestAmount', 'transactionAmount', 'escrowFee'],
|
||||
// 가상계좌
|
||||
@@ -58,6 +54,22 @@ export const AmountInfoSection = ({
|
||||
// 티머니페이
|
||||
'31': ['mid', 'transactionAmount'],
|
||||
};
|
||||
if(newAmountInfo?.partServiceCode === 'E015'){
|
||||
openSubItems['01']?.push('paycoPointAmount');
|
||||
openSubItems['01']?.push('paycoCouponAmount');
|
||||
}
|
||||
else if(newAmountInfo?.partServiceCode === 'E016'){
|
||||
openSubItems['01']?.push('kakaoMoneyAmount');
|
||||
openSubItems['01']?.push('kakaoPointAmount');
|
||||
openSubItems['01']?.push('kakaoDiscountAmount');
|
||||
}
|
||||
else if(newAmountInfo?.partServiceCode === 'E020'){
|
||||
openSubItems['01']?.push('naverPointAmount');
|
||||
}
|
||||
else if(newAmountInfo?.partServiceCode === 'E025'){
|
||||
openSubItems['01']?.push('tossMoneyAmount');
|
||||
openSubItems['01']?.push('tossDiscountAmount');
|
||||
}
|
||||
|
||||
|
||||
const checkValue = (val: any) => {
|
||||
@@ -359,7 +371,7 @@ export const AmountInfoSection = ({
|
||||
<span className="label">· 카카오즉시할인</span>
|
||||
<span className="value">
|
||||
<NumericFormat
|
||||
value={ amountInfo?.supplyAmount }
|
||||
value={ amountInfo?.kakaoDiscountAmount }
|
||||
thousandSeparator
|
||||
displayType="text"
|
||||
></NumericFormat>
|
||||
@@ -395,7 +407,7 @@ export const AmountInfoSection = ({
|
||||
<span className="label">· 토스할인</span>
|
||||
<span className="value">
|
||||
<NumericFormat
|
||||
value={ amountInfo?.supplyAmount }
|
||||
value={ amountInfo?.tossDiscountAmount }
|
||||
thousandSeparator
|
||||
displayType="text"
|
||||
></NumericFormat>
|
||||
|
||||
@@ -117,7 +117,7 @@ export const SettlementInfoSection = ({
|
||||
<>
|
||||
<li className="kv-row">
|
||||
<span className="k">· 승인정산일</span>
|
||||
<span className="v">{ moment(settlementInfo?.approvalSettlementDate).format('YYYY.MM.DD') }</span>
|
||||
<span className="v">{ settlementInfo?.approvalSettlementDate? moment(settlementInfo?.approvalSettlementDate).format('YYYY.MM.DD'): '' }</span>
|
||||
</li>
|
||||
<li className="kv-row">
|
||||
<span className="k">· 승인정산금액</span>
|
||||
@@ -132,7 +132,7 @@ export const SettlementInfoSection = ({
|
||||
</li>
|
||||
<li className="kv-row">
|
||||
<span className="k">· 취소정산일</span>
|
||||
<span className="v">{ moment(settlementInfo?.cancelSettlementDate).format('YYYY.MM.DD') }</span>
|
||||
<span className="v">{ settlementInfo?.cancelSettlementDate? moment(settlementInfo?.cancelSettlementDate).format('YYYY.MM.DD'): '' }</span>
|
||||
</li>
|
||||
<li className="kv-row">
|
||||
<span className="k">· 취소정산금액</span>
|
||||
|
||||
Reference in New Issue
Block a user