Skip to content

Commit

Permalink
VKT(Backend): SSN column missing in excel export
Browse files Browse the repository at this point in the history
  • Loading branch information
jrkkp committed Feb 6, 2025
1 parent fb5730f commit 8caf111
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ private void writeExcel(final Workbook workbook) {
"Ilmoittautumisaika",
"Sukunimi",
"Etunimi",
"Henkilötunnus",
"Aiempi tutkintopäivä",
"Tila",
"KT", // Kirjallinen taito
Expand Down Expand Up @@ -79,6 +80,7 @@ private void writeExcel(final Workbook workbook) {
row.createCell(++ci).setCellValue(dataRow.enrollmentTime());
row.createCell(++ci).setCellValue(dataRow.lastName());
row.createCell(++ci).setCellValue(dataRow.firstName());
row.createCell(++ci).setCellValue(dataRow.ssn());
setNullableValue(row.createCell(++ci), dataRow.previousEnrollment());
row.createCell(++ci).setCellValue(dataRow.status());
row.createCell(++ci).setCellValue(dataRow.textualSkill());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ void testExcelRender() throws Exception {

final Sheet sheet = workbook.getSheetAt(0);
assertEquals(2, sheet.getPhysicalNumberOfRows());
assertEquals(29, sheet.getRow(1).getPhysicalNumberOfCells());
assertEquals(30, sheet.getRow(1).getPhysicalNumberOfCells());
assertEquals("Tester", sheet.getRow(1).getCell(3).getStringCellValue());
}
}
Expand Down

0 comments on commit 8caf111

Please sign in to comment.