story/bugfixes #48

Closed
SZUT-Armin wants to merge 4 commits from story/bugfixes into main
Showing only changes of commit bf86f9fc84 - Show all commits

View file

@ -322,6 +322,13 @@ public class AllTreatmentController {
}catch (SQLException exception){
exception.printStackTrace();
}
if (selectedItem.calculateDeleteDate().isBefore(LocalDate.now())){
try {
dao.delete(selectedItem.getId());
} catch (SQLException e) {
throw new RuntimeException(e);
}
}
readAllAndShowInTableView();
}