fix: don't reject open applications in case of open slots
This commit is contained in:
@@ -28,7 +28,15 @@ class RejectApplicationListener
|
||||
}
|
||||
|
||||
$disposition = $document->getDisposition();
|
||||
$assignment = $disposition->getAssignment();
|
||||
|
||||
// skip further processing in case there are open slots left
|
||||
if ($assignment->getConfirmedDispositions()->count() < $assignment->getAvailableDispositions()) {
|
||||
return;
|
||||
}
|
||||
|
||||
$teamer = $disposition->getTeamer();
|
||||
|
||||
$otherApplications = $disposition
|
||||
->getAssignment()
|
||||
->getApplications()
|
||||
|
||||
Reference in New Issue
Block a user