고지서 일자,금액 표시 수정

main
이범준 11 months ago
parent 7101b6c0fd
commit ae3fc6fc4a

@ -56,8 +56,14 @@ public class Nht extends PDFFormat {
text("crdnSn","증거번호",""), text("crdnSn","증거번호",""),
text("ffnlgCrdnAmt","최초금액",""), text("ffnlgCrdnAmt","최초금액",""),
text("advntceAmt","사전통지금액",""), text("pcptax","본세",""),
text("advntceDudtYmd","납부기한",""), text("adamt","가산금",""),
text("sumAmt","납기금액",""),
text("dudtYmd","납기일자",""),
text("dudtAftrPcptax","납기후본세",""),
text("dudtAftrAdamt","납기후가산금",""),
text("dudtAftrAmt","납기후금액",""),
text("dudtAftrYmd","납기후일자",""),
text("vrActno","대표가상계좌번호",""), text("vrActno","대표가상계좌번호",""),
text("vrActno1","가상계좌번호1",""), text("vrActno1","가상계좌번호1",""),
@ -153,11 +159,30 @@ public class Nht extends PDFFormat {
case "ffnlgCrdnAmt" -> { case "ffnlgCrdnAmt" -> {
result = dataObject.string("FFNLG_CRDN_AMT"); result = dataObject.string("FFNLG_CRDN_AMT");
} }
case "advntceAmt" -> {
result = CmmnUtil.addCommaToNumber(dataObject.string("ADVNTCE_AMT")); case "pcptax" -> { //본세
result = dataObject.string("PCPTAX");
}
case "adamt" -> { //가산금
result = dataObject.string("ADAMT");
}
case "sumAmt" -> { //납기금액
result = dataObject.string("SUM_AMT");
}
case "dudtYmd" -> { //납기일자
result = dataObject.string("DUDT_YMD");
} }
case "advntceDudtYmd" -> { case "dudtAftrPcptax" -> { //납기후본세
result = DataFormat.yyyy_mm_dd(dataObject.string("ADVNTCE_DUDT_YMD")); result = dataObject.string("PCPTAX");
}
case "dudtAftrAdamt" -> { //납기후가산금
result = (dataObject.number("DUDT_AFTR_AMT").intValue() - dataObject.number("PCPTAX").intValue())+"";
}
case "dudtAftrAmt" -> { //납기후금액
result = dataObject.string("DUDT_AFTR_AMT");
}
case "dudtAftrYmd" -> { //납기후일자
result = dataObject.string("DUDT_AFTR_YMD");
} }
case "vrActno" -> { case "vrActno" -> {
@ -383,9 +408,13 @@ public class Nht extends PDFFormat {
dataObject.put("LEVY_NO", "123456"); dataObject.put("LEVY_NO", "123456");
dataObject.put("INSPY_SN", "00"); dataObject.put("INSPY_SN", "00");
dataObject.put("LEVY_SE_CD", "01"); dataObject.put("LEVY_SE_CD", "01");
dataObject.put("SUM_AMT", "80000");
dataObject.put("DUDT_YMD", "20231215"); dataObject.put("PCPTAX", "80000"); //본세
dataObject.put("DUDT_AFTR_AMT", "20231231"); dataObject.put("ADAMT", "0"); //가산금
dataObject.put("SUM_AMT", "80000"); //합계금액
dataObject.put("DUDT_YMD", "20231215"); //납기일자
dataObject.put("DUDT_AFTR_AMT", "100000"); //납기후 금액
dataObject.put("DUDT_AFTR_YMD", "20231231"); //납기후 일자
dataObject.put("CRDN_PHOTO1", "samplefiles/crdn1.png"); dataObject.put("CRDN_PHOTO1", "samplefiles/crdn1.png");
dataObject.put("CRDN_PHOTO2", "samplefiles/crdn2.png"); dataObject.put("CRDN_PHOTO2", "samplefiles/crdn2.png");

Loading…
Cancel
Save