Feat: Add popup window to display teamer info per application

This commit is contained in:
Björn Fromme
2023-10-19 15:49:26 +02:00
parent 585f86e45f
commit 67cc7bf4ed
8 changed files with 107 additions and 20 deletions
+2 -2
View File
@@ -129,7 +129,7 @@ class Application implements TimestampableEntityInterface
return $teamer->hasPickup($pickupId);
}
public function getCompletedTrainingsCount(): int
public function matchesRequiredTrainings(): bool
{
$count = 0;
$requiredTrainings = $this->getAssignment()->getJobProfile()->getRequiredTrainings();
@@ -141,6 +141,6 @@ class Application implements TimestampableEntityInterface
}
}
return $count;
return $count === $requiredTrainings->count();
}
}