From abada459bb59c8e281a18c277c24ad62c010c722 Mon Sep 17 00:00:00 2001 From: Qiuyi LI Date: Fri, 15 Sep 2023 11:20:28 +0200 Subject: [PATCH] Update AbstractInvoice.java Delete system.out.println --- .../modules/business/domain/invoice/AbstractInvoice.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/business/domain/invoice/AbstractInvoice.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/business/domain/invoice/AbstractInvoice.java index 091904698..da1086e6a 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/business/domain/invoice/AbstractInvoice.java +++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/business/domain/invoice/AbstractInvoice.java @@ -158,7 +158,6 @@ public abstract class AbstractInvoice { int dataRowNumber = LAST_ROW - FIRST_ROW; int additionalRowNum = Math.max(data.size() - dataRowNumber - 1, 0); TOTAL_ROW = LAST_ROW + additionalRowNum; - System.out.println("initial TOTAL_ROW : " + TOTAL_ROW); Sheet sheet = factory.getWorkbook().getSheetAt(0); org.apache.poi.ss.usermodel.Row sourceRow = sheet.getRow(FIRST_ROW); int footerRow = TOTAL_ROW + 1; // la ligne à laquelle le footer commence (1 ligne avant le total) @@ -169,10 +168,7 @@ public abstract class AbstractInvoice { int fileLastRow = sheet.getLastRowNum(); //62 // shifting the footer of the file, to X rows below // making sure the whole footer is in the same page (13 lines) and we fill the end of page with blank data lines - System.out.println("additionalRowNum : " + additionalRowNum); - System.out.println("PAGE_ROW_MAX : " + PAGE_ROW_MAX); - System.out.println("additionalRowNum%PAGE_ROW_MAX : " + additionalRowNum%PAGE_ROW_MAX); - + // si le nombre de lignes de data rentre dans 1 page A4 if(data.size() < 44) { if(TOTAL_ROW > LAST_ROW + 3) { // s'il ne reste pas assez de place pour le footer @@ -343,7 +339,6 @@ public abstract class AbstractInvoice { if (targetClient.getCurrency().equals("USD")) { org.apache.poi.ss.usermodel.Row dollarRow; String formula; - System.out.println(((LAST_ROW + additionalRowNum - 44) % 63)); if ((((LAST_ROW + additionalRowNum - 44) % 63) < 13) && ((LAST_ROW + additionalRowNum - 44) % 63) > 0) { dollarRow = sheet.getRow(TOTAL_ROW + 2); formula = "H"+ (TOTAL_ROW + 2) +" *" + exchangeRate;