erweiterung der Spalten für KW Excel - wegen neuer Abteilungen

This commit is contained in:
Ralph Soika 2024-09-23 20:10:33 +02:00
parent a14762f784
commit 00e2dde892
2 changed files with 5 additions and 4 deletions

View file

@ -19,6 +19,7 @@ import org.apache.poi.ss.usermodel.CellCopyPolicy;
import org.apache.poi.ss.usermodel.CellStyle;
import org.apache.poi.ss.usermodel.FillPatternType;
import org.apache.poi.ss.usermodel.IndexedColors;
import org.apache.poi.ss.usermodel.Row.MissingCellPolicy;
import org.apache.poi.xssf.usermodel.XSSFCell;
import org.apache.poi.xssf.usermodel.XSSFRow;
import org.apache.poi.xssf.usermodel.XSSFSheet;
@ -289,21 +290,21 @@ public class OPListExportAdapterByWeek extends POIFindReplaceAdapter {
XSSFCell cell = null;
// column++;
// Space currency EUR
cell = referenceRowSpacesCurrencies.getCell(column);
cell = referenceRowSpacesCurrencies.getCell(column, MissingCellPolicy.CREATE_NULL_AS_BLANK);
cell.copyCellFrom(cellKWTotalReference, new CellCopyPolicy());
cell.setCellValue(currency1);
cell = rowSpacesLabels.getCell(column);
cell = rowSpacesLabels.getCell(column, MissingCellPolicy.CREATE_NULL_AS_BLANK);
cell.copyCellFrom(cellKWTotalReference, new CellCopyPolicy());
cell.setCellValue("");
// Space currency USD
column++;
cell = referenceRowSpacesCurrencies.getCell(column);
cell = referenceRowSpacesCurrencies.getCell(column, MissingCellPolicy.CREATE_NULL_AS_BLANK);
cell.copyCellFrom(cellKWTotalReference, new CellCopyPolicy());
cell.setCellValue(currency2);
// Space Label
cell = rowSpacesLabels.getCell(column);
cell = rowSpacesLabels.getCell(column, MissingCellPolicy.CREATE_NULL_AS_BLANK);
cell.copyCellFrom(cellKWTotalReference, new CellCopyPolicy());
cell.setCellValue("Total");

Binary file not shown.