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();
|
$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();
|
$teamer = $disposition->getTeamer();
|
||||||
|
|
||||||
$otherApplications = $disposition
|
$otherApplications = $disposition
|
||||||
->getAssignment()
|
->getAssignment()
|
||||||
->getApplications()
|
->getApplications()
|
||||||
|
|||||||
Reference in New Issue
Block a user