Feat: Reduce number of available dispositions when disposed
This commit is contained in:
@@ -28,10 +28,11 @@ class AssignmentRepository extends ServiceEntityRepository
|
||||
$qb = $this->createQueryBuilder('assignment');
|
||||
|
||||
$qb
|
||||
->select('assignment', 'destination', 'job_profile', 'application')
|
||||
->select('assignment', 'destination', 'job_profile', 'application', 'disposition')
|
||||
->innerJoin('assignment.destination', 'destination')
|
||||
->innerJoin('assignment.jobProfile', 'job_profile')
|
||||
->leftJoin('assignment.applications', 'application')
|
||||
->leftJoin('assignment.dispositions', 'disposition')
|
||||
;
|
||||
|
||||
if (null !== $teamer) {
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
{{ assignment.pickupDate ? assignment.pickupDate|date('d.m.Y') : '' }}
|
||||
</td>
|
||||
<td>
|
||||
{{ assignment.applications|length }}/{{ assignment.availableDispositions }}
|
||||
{{ assignment.applications|length }}/{{ assignment.availableDispositions - assignment.dispositions|length }}
|
||||
</td>
|
||||
<td>
|
||||
<div class="flex items-center space-x-1 justify-end">
|
||||
|
||||
Reference in New Issue
Block a user