generate context for evaluations

This commit is contained in:
2021-12-03 23:31:19 +01:00
parent 29134f0f11
commit 6c1a946608
7 changed files with 54 additions and 6 deletions

View File

@@ -249,11 +249,11 @@ class AccompanyingPeriodWorkEvaluation implements TrackCreationInterface, TrackU
*/
public function getWarningDate(): ?DateTimeImmutable
{
if (null === $this->getWarningDate() || null === $this->getWarningInterval()) {
if (null === $this->getEndDate() || null === $this->getWarningInterval()) {
return null;
}
return $this->getWarningDate()->sub($this->getWarningInterval());
return $this->getEndDate()->sub($this->getWarningInterval());
}
public function removeDocument(AccompanyingPeriodWorkEvaluationDocument $document): self