버그 픽스

This commit is contained in:
focp212@naver.com
2025-11-17 09:46:52 +09:00
parent 4b4906080b
commit ab05f44a21
2 changed files with 23 additions and 18 deletions

View File

@@ -98,7 +98,7 @@ export const TaxInvoiceSample = ({
let emptyCnt = 11 - newSupplyAmount.length; let emptyCnt = 11 - newSupplyAmount.length;
for(let i=0;i<emptyCnt;i++){ for(let i=0;i<emptyCnt;i++){
rs.push( rs.push(
<td className="inner-table10-td2">&nbsp</td> <td className="inner-table10-td2">&nbsp;</td>
); );
} }
for(let i=0;i<newSupplyAmount.length;i++){ for(let i=0;i<newSupplyAmount.length;i++){
@@ -114,7 +114,7 @@ export const TaxInvoiceSample = ({
let emptyCnt = 10 - newTaxAmount.length; let emptyCnt = 10 - newTaxAmount.length;
for(let i=0;i<emptyCnt;i++){ for(let i=0;i<emptyCnt;i++){
rs.push( rs.push(
<td className="inner-table10-td2">&nbsp</td> <td className="inner-table10-td2">&nbsp;</td>
); );
} }
for(let i=0;i<newTaxAmount.length;i++){ for(let i=0;i<newTaxAmount.length;i++){
@@ -142,6 +142,11 @@ export const TaxInvoiceSample = ({
} }
setNewTaxAmount(taxAmountArr); setNewTaxAmount(taxAmountArr);
}; };
const returnNbsp = () => {
return (
<>&nbsp;</>
);
};
useEffect(() => { useEffect(() => {
if(!!taxInvoiceSampleOn){ if(!!taxInvoiceSampleOn){
@@ -356,9 +361,9 @@ export const TaxInvoiceSample = ({
<td className="inner-table9-td2"></td> <td className="inner-table9-td2"></td>
</tr> </tr>
<tr> <tr>
<td className="inner-table9-td2-1">{ (!!issueDate)? moment(issueDate).format('YYYY'): '' }</td> <td className="inner-table9-td2-1">{ (!!issueDate)? moment(issueDate).format('YYYY'): returnNbsp() }</td>
<td className="inner-table9-td2-1">{ (!!issueDate)? moment(issueDate).format('MM'): '' }</td> <td className="inner-table9-td2-1">{ (!!issueDate)? moment(issueDate).format('MM'): returnNbsp() }</td>
<td className="inner-table9-td2-1">{ (!!issueDate)? moment(issueDate).format('DD'): '' }</td> <td className="inner-table9-td2-1">{ (!!issueDate)? moment(issueDate).format('DD'): returnNbsp() }</td>
</tr> </tr>
</table> </table>
</td> </td>
@@ -467,13 +472,13 @@ export const TaxInvoiceSample = ({
<td className="inner-table13-td1">/</td> <td className="inner-table13-td1">/</td>
</tr> </tr>
<tr> <tr>
<td className="inner-table13-td2">{ (!!transactionDetails?.transactionPeriod)? moment(transactionDetails.transactionPeriod).format('MM/DD'): '' }</td> <td className="inner-table13-td2">{ (!!transactionDetails?.transactionPeriod)? moment(transactionDetails.transactionPeriod).format('MM/DD'): returnNbsp() }</td>
</tr> </tr>
<tr> <tr>
<td className="inner-table13-td2">&nbsp</td> <td className="inner-table13-td2">&nbsp;</td>
</tr> </tr>
<tr> <tr>
<td className="inner-table13-td3">&nbsp</td> <td className="inner-table13-td3">&nbsp;</td>
</tr> </tr>
</table> </table>
</td> </td>
@@ -486,7 +491,7 @@ export const TaxInvoiceSample = ({
<td <td
colSpan={ 7 } colSpan={ 7 }
className="inner-table11-td1" className="inner-table11-td1"
> </td> > ( ) </td>
</tr> </tr>
<tr> <tr>
<td className="inner-table9-td1"></td> <td className="inner-table9-td1"></td>
@@ -498,37 +503,37 @@ export const TaxInvoiceSample = ({
<td className="inner-table11-td1"></td> <td className="inner-table11-td1"></td>
</tr> </tr>
<tr> <tr>
<td className="inner-table6-td9">{ transactionDetails?.itemName }</td> <td className="inner-table6-td9">{ transactionDetails?.itemName || returnNbsp() }</td>
<td className="inner-table6-td9">{ transactionDetails?.specification }</td> <td className="inner-table6-td9">{ transactionDetails?.specification || returnNbsp() }</td>
<td className="inner-table6-td13"> <td className="inner-table6-td13">
<NumericFormat <NumericFormat
value={ transactionDetails?.quantity } value={ transactionDetails?.quantity || 0 }
thousandSeparator thousandSeparator
displayType="text" displayType="text"
></NumericFormat> ></NumericFormat>
</td> </td>
<td className="inner-table6-td14"> <td className="inner-table6-td14">
<NumericFormat <NumericFormat
value={ transactionDetails?.unitPrice } value={ transactionDetails?.unitPrice || 0 }
thousandSeparator thousandSeparator
displayType="text" displayType="text"
></NumericFormat> ></NumericFormat>
</td> </td>
<td className="inner-table6-td14"> <td className="inner-table6-td14">
<NumericFormat <NumericFormat
value={ transactionDetails?.supplyAmount } value={ transactionDetails?.supplyAmount || 0 }
thousandSeparator thousandSeparator
displayType="text" displayType="text"
></NumericFormat> ></NumericFormat>
</td> </td>
<td className="inner-table6-td14"> <td className="inner-table6-td14">
<NumericFormat <NumericFormat
value={ transactionDetails?.taxAmount } value={ transactionDetails?.taxAmount || 0 }
thousandSeparator thousandSeparator
displayType="text" displayType="text"
></NumericFormat> ></NumericFormat>
</td> </td>
<td className="inner-table6-td15">{ transactionDetails?.remarks }</td> <td className="inner-table6-td15">{ transactionDetails?.remarks || returnNbsp() }</td>
</tr> </tr>
<tr> <tr>
<td className="inner-table6-td9">&nbsp;</td> <td className="inner-table6-td9">&nbsp;</td>
@@ -638,7 +643,7 @@ export const TaxInvoiceSample = ({
<tr> <tr>
<td <td
className="inner-table4-td2" className="inner-table4-td2"
style={{ verticalAlign: 'middle'}} style={{ verticalAlign: 'top'}}
> >
<img <img
className="nicepay-gray-logo" className="nicepay-gray-logo"

View File

@@ -678,7 +678,7 @@
text-decoration: none; text-decoration: none;
} }
.tax-invoice-footer { .tax-invoice-footer {
padding: 10px 30px 10px 10px; padding: 0px 30px 10px 10px;
font-family: Pretendard, Arial, Helvetica, sans-serif; font-family: Pretendard, Arial, Helvetica, sans-serif;
font-size: 12px; font-size: 12px;
line-height: 1.4; line-height: 1.4;