Commit 334df4fa authored by Hando Lukats's avatar Hando Lukats
Browse files

TEIS-2394 implemented changes from testing

parent 55d1314f
......@@ -51,6 +51,8 @@ public class RiskAssessmentPDFService {
private static final String DOCUMENT_TEMPLATE_ID = "RISK_ASSESSMENT_PDF";
private static final String BUSINESS_TYPE_DELIMITER = "; ";
private static final String FILE_EXTENSION = ".pdf";
private static final String TASK_DONE = "Tehtud";
private static final String TASK_TODO = "Tegemata";
private final RiskAssessmentPublicBusinessService riskAssessmentPublicBusinessService;
private final RiskFactorAssessmentDataService riskFactorAssessmentDataService;
......@@ -154,12 +156,20 @@ public class RiskAssessmentPDFService {
} else {
taskDto.setDate(task.getDeadline().toLocalDate());
}
taskDto.setStatus(task.getStatus().name());
taskDto.setStatus(getTaskStatusName(task.getStatus().name()));
riskStatementAssessmentPdfDto.setTask(taskDto);
}
});
}
private String getTaskStatusName(String status) {
if (status.equals(TaskStatusType.DONE.name())) {
return TASK_DONE;
} else {
return TASK_TODO;
}
}
private void setRiskStatementAssessmentDescription(RiskStatementAssessmentEntity riskStatementAssessment,
RiskStatementAssessmentPdfDto riskStatementAssessmentPdfDto, String status) {
if (riskStatementAssessment.getRiskStatementId() != null) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment