Skip to content

Commit

Permalink
Merge pull request #400 from adessoAG/importer-fix
Browse files Browse the repository at this point in the history
Adjust test file and importer logic
  • Loading branch information
maximAtanasov authored Jun 23, 2020
2 parents d458a34 + e4f54f9 commit 286dcd2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,13 @@ boolean checkValidityAndSetSheetAndColumnIndices(Workbook workbook) {
Row r = sheet.getRow(headerRowIndex);
try {
if(r.getCell(5).getStringCellValue().equals("AA-Nr")){
columnBudget++;
columnHours++;
columnInvoiceable++;
columnBudget = 9;
columnHours = 11;
columnInvoiceable = 12;
} else {
columnBudget = 8;
columnHours = 10;
columnInvoiceable = 11;
}
isValid = r.getCell(columnPerson).getStringCellValue().equals("Name") &&
r.getCell(columnDate).getStringCellValue().equals("Tag") &&
Expand Down
Binary file modified budgeteer-ubw-importer/src/main/resources/example_ubw_report.xlsx
Binary file not shown.

0 comments on commit 286dcd2

Please sign in to comment.