수정
This commit is contained in:
@@ -58,12 +58,19 @@ export const CashReceiptSample = ({
|
|||||||
if(!!issueInfo?.issueDate && !!issueInfo?.issueTime){
|
if(!!issueInfo?.issueDate && !!issueInfo?.issueTime){
|
||||||
time = moment(issueInfo?.issueDate+' '+issueInfo?.issueTime).format('HH:mm:ss');
|
time = moment(issueInfo?.issueDate+' '+issueInfo?.issueTime).format('HH:mm:ss');
|
||||||
}
|
}
|
||||||
return date + ' | ' + time;
|
if(!!date && !!time){
|
||||||
|
return date + ' | ' + time;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
return '';
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if(!!cashReceiptSampleOn){
|
if(!!cashReceiptSampleOn){
|
||||||
downloadImage();
|
setTimeout(() => {
|
||||||
|
downloadImage();
|
||||||
|
}, 500);
|
||||||
}
|
}
|
||||||
}, [cashReceiptSampleOn]);
|
}, [cashReceiptSampleOn]);
|
||||||
|
|
||||||
@@ -77,8 +84,8 @@ export const CashReceiptSample = ({
|
|||||||
variants={ FilterMotionVariants }
|
variants={ FilterMotionVariants }
|
||||||
transition={ FilterMotionDuration }
|
transition={ FilterMotionDuration }
|
||||||
>
|
>
|
||||||
<div className="wrap">
|
<div id="image-section">
|
||||||
<div id="image-section">
|
<div className="wrap">
|
||||||
<div className="section">
|
<div className="section">
|
||||||
<div className="head">
|
<div className="head">
|
||||||
<div className="icon">
|
<div className="icon">
|
||||||
@@ -140,7 +147,6 @@ export const CashReceiptSample = ({
|
|||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
<div className="h-title">결제정보</div>
|
<div className="h-title">결제정보</div>
|
||||||
<img src={ IMAGE_ROOT + '/ico_sign.png' } />
|
|
||||||
</div>
|
</div>
|
||||||
<div className="amount-row">
|
<div className="amount-row">
|
||||||
<div className="k">총 결제금액</div>
|
<div className="k">총 결제금액</div>
|
||||||
@@ -222,11 +228,11 @@ export const CashReceiptSample = ({
|
|||||||
<div className="v">{ issueInfo?.purpose }</div>
|
<div className="v">{ issueInfo?.purpose }</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div className="notice">
|
||||||
<div className="notice">
|
* 본 영수증은 조세특례제한법 제 126조의 3및 동법 시행령 제 121조의 3규정에 의거, 연말정산시 소득공제 혜택 부여의 목적으로 발행됩니다.<br />
|
||||||
* 본 영수증은 조세특례제한법 제 126조의 3및 동법 시행령 제 121조의 3규정에 의거, 연말정산시 소득공제 혜택 부여의 목적으로 발행됩니다.<br />
|
* 현금 거래 완료 건에 대한 국세청의 검증 소요기간은 2일이며 결제하신 다음날 검증이 완료된 현금영수증을 발급받을 수 있습니다.<br />
|
||||||
* 현금 거래 완료 건에 대한 국세청의 검증 소요기간은 2일이며 결제하신 다음날 검증이 완료된 현금영수증을 발급받을 수 있습니다.<br />
|
* 현금영수증 문의 126-1-1
|
||||||
* 현금영수증 문의 126-1-1
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</motion.div>
|
</motion.div>
|
||||||
|
|||||||
@@ -58,11 +58,18 @@ export const TaxInvoiceSample = ({
|
|||||||
if(!!issueInfo?.issueDate && !!issueInfo?.issueTime){
|
if(!!issueInfo?.issueDate && !!issueInfo?.issueTime){
|
||||||
time = moment(issueInfo?.issueDate+' '+issueInfo?.issueTime).format('HH:mm:ss');
|
time = moment(issueInfo?.issueDate+' '+issueInfo?.issueTime).format('HH:mm:ss');
|
||||||
}
|
}
|
||||||
return date + ' | ' + time;
|
|
||||||
|
if(!!date && !!time){
|
||||||
|
return date + ' | ' + time;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
return '';
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if(!!taxInvoiceSampleOn){
|
if(!!taxInvoiceSampleOn){
|
||||||
|
setTimeout
|
||||||
downloadImage();
|
downloadImage();
|
||||||
}
|
}
|
||||||
}, [taxInvoiceSampleOn]);
|
}, [taxInvoiceSampleOn]);
|
||||||
@@ -73,12 +80,12 @@ export const TaxInvoiceSample = ({
|
|||||||
<motion.div
|
<motion.div
|
||||||
className="bottomsheet mail-page"
|
className="bottomsheet mail-page"
|
||||||
initial="hidden"
|
initial="hidden"
|
||||||
animate={ (taxInvoiceSampleOn)? 'hidden': 'hidden' }
|
animate={ (taxInvoiceSampleOn)? 'visible': 'hidden' }
|
||||||
variants={ FilterMotionVariants }
|
variants={ FilterMotionVariants }
|
||||||
transition={ FilterMotionDuration }
|
transition={ FilterMotionDuration }
|
||||||
>
|
>
|
||||||
<div className="wrap">
|
<div id="image-section">
|
||||||
<div id="image-section">
|
<div className="wrap">
|
||||||
<div className="section">
|
<div className="section">
|
||||||
<div className="head">
|
<div className="head">
|
||||||
<div className="icon">
|
<div className="icon">
|
||||||
@@ -222,11 +229,11 @@ export const TaxInvoiceSample = ({
|
|||||||
<div className="v">{ issueInfo?.purpose }</div>
|
<div className="v">{ issueInfo?.purpose }</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div className="notice">
|
||||||
<div className="notice">
|
|
||||||
* 본 영수증은 조세특례제한법 제 126조의 3및 동법 시행령 제 121조의 3규정에 의거, 연말정산시 소득공제 혜택 부여의 목적으로 발행됩니다.<br />
|
* 본 영수증은 조세특례제한법 제 126조의 3및 동법 시행령 제 121조의 3규정에 의거, 연말정산시 소득공제 혜택 부여의 목적으로 발행됩니다.<br />
|
||||||
* 현금 거래 완료 건에 대한 국세청의 검증 소요기간은 2일이며 결제하신 다음날 검증이 완료된 현금영수증을 발급받을 수 있습니다.<br />
|
* 현금 거래 완료 건에 대한 국세청의 검증 소요기간은 2일이며 결제하신 다음날 검증이 완료된 현금영수증을 발급받을 수 있습니다.<br />
|
||||||
* 현금영수증 문의 126-1-1
|
* 현금영수증 문의 126-1-1
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</motion.div>
|
</motion.div>
|
||||||
|
|||||||
@@ -208,6 +208,11 @@ export const AmountInfoSection = ({
|
|||||||
tid: tid
|
tid: tid
|
||||||
};
|
};
|
||||||
cashReceiptReceiptDownload(params).then((rs: CashReceiptReceiptDownloadResponse) => {
|
cashReceiptReceiptDownload(params).then((rs: CashReceiptReceiptDownloadResponse) => {
|
||||||
|
/*
|
||||||
|
if(rs?.merchantInfo){
|
||||||
|
rs.merchantInfo.merchantName = '나이스페이먼츠';
|
||||||
|
}
|
||||||
|
*/
|
||||||
setReceiptIssueInfo(rs?.issueInfo);
|
setReceiptIssueInfo(rs?.issueInfo);
|
||||||
setReceiptMerchantInfo(rs?.merchantInfo);
|
setReceiptMerchantInfo(rs?.merchantInfo);
|
||||||
setReceiptTransactionInfo(rs?.transactionInfo);
|
setReceiptTransactionInfo(rs?.transactionInfo);
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
body { margin: 0; padding: 0; background: #FAFAFA; }
|
/* body { margin: 0; padding: 0; background: #FAFAFA; }*/
|
||||||
.mail-page { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 0 0 30px 0; }
|
.mail-page { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 0 0 30px 0; }
|
||||||
.mail-page .wrap { width: 100%; min-width: 320px; background: #FFFFFF; padding: 0 20px; box-sizing: border-box; }
|
.mail-page .wrap { width: 100%; min-width: 320px; background: #FFFFFF; padding: 0 20px; box-sizing: border-box; }
|
||||||
/* header */
|
/* header */
|
||||||
@@ -39,9 +39,10 @@ body { margin: 0; padding: 0; background: #FAFAFA; }
|
|||||||
.mail-page .notice { padding: 16px; background: #F3F3F3; border-radius: 6px; margin: 30px 0 0 0; font-family: Pretendard, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.5; color: #2D3436; }
|
.mail-page .notice { padding: 16px; background: #F3F3F3; border-radius: 6px; margin: 30px 0 0 0; font-family: Pretendard, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.5; color: #2D3436; }
|
||||||
|
|
||||||
.mail-page #image-section{
|
.mail-page #image-section{
|
||||||
padding: 0 20px 20px 20px;
|
padding: 0 0 20px 0;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
}
|
}
|
||||||
.mail-page #image-section .section{
|
.mail-page #image-section .section{
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user