Feat: Add popup window to display teamer info per application
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user