Feat: Add popup window to display teamer info per application

This commit is contained in:
Björn Fromme committed 2023-10-19 15:49:26 +02:00
1 parent 585f86e45f
commit 67cc7bf4ed
8 files changed
+107 -20

No files matched your search

+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();
}
}