현금영수증 완료
This commit is contained in:
@@ -12,7 +12,8 @@ export const AmountInfoSection = ({
|
||||
isOpen,
|
||||
tid,
|
||||
serviceCode,
|
||||
onClickToOpenInfo
|
||||
onClickToOpenInfo,
|
||||
canDownloadReceipt
|
||||
}: InfoSectionProps) => {
|
||||
const { mutateAsync: downloadConfirmation } = useDownloadConfirmationMutation();
|
||||
let newAmountInfo: Record<string, any> | undefined = amountInfo;
|
||||
@@ -186,7 +187,7 @@ export const AmountInfoSection = ({
|
||||
<div className="txn-num-group">
|
||||
<div className="txn-amount">
|
||||
<div className="value">
|
||||
{
|
||||
{ (transactionCategory === TransactionCategory.AllTransaction) &&
|
||||
(serviceCode === '01' || serviceCode === '02' || serviceCode === '03' || serviceCode === '26') &&
|
||||
<NumericFormat
|
||||
value={ amountInfo?.transactionRequestAmount }
|
||||
@@ -194,11 +195,18 @@ export const AmountInfoSection = ({
|
||||
displayType="text"
|
||||
></NumericFormat>
|
||||
}
|
||||
{
|
||||
{ (transactionCategory === TransactionCategory.AllTransaction) &&
|
||||
(serviceCode === '05' || serviceCode === '14' || serviceCode === '21'
|
||||
|| serviceCode === '24' || serviceCode === '31') &&
|
||||
<NumericFormat
|
||||
value={ amountInfo?.transactionAmount }
|
||||
value={ amountInfo?.transactionAmount}
|
||||
thousandSeparator
|
||||
displayType="text"
|
||||
></NumericFormat>
|
||||
}
|
||||
{ (transactionCategory === TransactionCategory.CashReceipt) &&
|
||||
<NumericFormat
|
||||
value={ amountInfo?.amount}
|
||||
thousandSeparator
|
||||
displayType="text"
|
||||
></NumericFormat>
|
||||
@@ -222,7 +230,48 @@ export const AmountInfoSection = ({
|
||||
subLi()
|
||||
}
|
||||
{ (transactionCategory === TransactionCategory.CashReceipt) &&
|
||||
<></>
|
||||
<>
|
||||
<li className="amount-item">
|
||||
<span className="label">· 공급가액</span>
|
||||
<span className="value">
|
||||
<NumericFormat
|
||||
value={ amountInfo?.supplyAmount }
|
||||
thousandSeparator
|
||||
displayType="text"
|
||||
></NumericFormat>
|
||||
</span>
|
||||
</li>
|
||||
<li className="amount-item">
|
||||
<span className="label">· VAT</span>
|
||||
<span className="value">
|
||||
<NumericFormat
|
||||
value={ amountInfo?.vat }
|
||||
thousandSeparator
|
||||
displayType="text"
|
||||
></NumericFormat>
|
||||
</span>
|
||||
</li>
|
||||
<li className="amount-item">
|
||||
<span className="label">· 봉사료</span>
|
||||
<span className="value">
|
||||
<NumericFormat
|
||||
value={ amountInfo?.serviceAmount }
|
||||
thousandSeparator
|
||||
displayType="text"
|
||||
></NumericFormat>
|
||||
</span>
|
||||
</li>
|
||||
<li className="amount-item">
|
||||
<span className="label">· 면세금액</span>
|
||||
<span className="value">
|
||||
<NumericFormat
|
||||
value={ amountInfo?.taxFreeAmount }
|
||||
thousandSeparator
|
||||
displayType="text"
|
||||
></NumericFormat>
|
||||
</span>
|
||||
</li>
|
||||
</>
|
||||
}
|
||||
{ (transactionCategory === TransactionCategory.Escrow) &&
|
||||
<></>
|
||||
@@ -231,21 +280,24 @@ export const AmountInfoSection = ({
|
||||
</div>
|
||||
}
|
||||
</SlideDown>
|
||||
<div className="txn-mid">
|
||||
<span className="value">{ amountInfo?.mid }</span>
|
||||
</div>
|
||||
{
|
||||
((transactionCategory === TransactionCategory.CashReceipt) ||
|
||||
(transactionCategory === TransactionCategory.Escrow) ||
|
||||
(transactionCategory === TransactionCategory.Billing)) &&
|
||||
<div className="txn-doc">
|
||||
{ (transactionCategory === TransactionCategory.AllTransaction) &&
|
||||
<div className="txn-mid">
|
||||
<span className="value">{ amountInfo?.mid }</span>
|
||||
</div>
|
||||
}
|
||||
<div className="txn-doc">
|
||||
{
|
||||
((transactionCategory === TransactionCategory.CashReceipt) ||
|
||||
(transactionCategory === TransactionCategory.Escrow) ||
|
||||
(transactionCategory === TransactionCategory.Billing)) &&
|
||||
!!canDownloadReceipt &&
|
||||
<button
|
||||
className="doc-btn"
|
||||
type="button"
|
||||
onClick={ () => onClickToDownloadConfirmation() }
|
||||
>거래 확인서</button>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user