Feat: Reduce number of available dispositions when disposed

This commit is contained in:
Björn Fromme
2023-10-12 14:47:16 +02:00
parent eefb60007f
commit 603812c7fc
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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) {
+1 -1
View File
@@ -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">