Merge branch 'master' into feature/multiple-hotelcodes
This commit is contained in:
+5
-1
@@ -1,4 +1,8 @@
|
|||||||
import 'htmx.org';
|
import htmx from 'htmx.org'
|
||||||
|
htmx.config.includeIndicatorStyles = false
|
||||||
|
htmx.config.historyCacheSize = 0
|
||||||
|
htmx.config.allowScriptTags = false
|
||||||
|
|
||||||
import './bootstrap.js';
|
import './bootstrap.js';
|
||||||
/*
|
/*
|
||||||
* Welcome to your app's main JavaScript file!
|
* Welcome to your app's main JavaScript file!
|
||||||
|
|||||||
@@ -35,11 +35,17 @@ class TeamerApplicationType extends AbstractType
|
|||||||
}
|
}
|
||||||
|
|
||||||
$assignment = $application->getAssignment();
|
$assignment = $application->getAssignment();
|
||||||
|
$pickups = $assignment->getDestination()->getPickups();
|
||||||
|
|
||||||
|
if (0 === count($pickups)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$teamer = $application->getTeamer();
|
$teamer = $application->getTeamer();
|
||||||
|
|
||||||
if (0 === (int) $assignment->getPickup()) {
|
if (0 === (int) $assignment->getPickup()) {
|
||||||
$pickupChoices = [];
|
$pickupChoices = [];
|
||||||
foreach ($assignment->getDestination()->getPickups() as $pickup) {
|
foreach ($pickups as $pickup) {
|
||||||
$pickupChoices[$pickup['city']] = $pickup['busProId'];
|
$pickupChoices[$pickup['city']] = $pickup['busProId'];
|
||||||
}
|
}
|
||||||
ksort($pickupChoices);
|
ksort($pickupChoices);
|
||||||
|
|||||||
@@ -244,6 +244,7 @@ class AssignmentRepository extends ServiceEntityRepository
|
|||||||
->leftJoin('assignment.dispositions', 'disposition', Join::WITH, $qb->expr()->eq('disposition.teamer', ':teamer'))
|
->leftJoin('assignment.dispositions', 'disposition', Join::WITH, $qb->expr()->eq('disposition.teamer', ':teamer'))
|
||||||
->where($qb->expr()->andX(
|
->where($qb->expr()->andX(
|
||||||
$qb->expr()->eq('assignment.status', ':status'),
|
$qb->expr()->eq('assignment.status', ':status'),
|
||||||
|
$qb->expr()->neq('assignment.staffingStatus', ':staffingStatus'),
|
||||||
$qb->expr()->in('assignment.jobProfile', ':jobProfiles'),
|
$qb->expr()->in('assignment.jobProfile', ':jobProfiles'),
|
||||||
$qb->expr()->isNull('application'),
|
$qb->expr()->isNull('application'),
|
||||||
$qb->expr()->isNull('disposition'),
|
$qb->expr()->isNull('disposition'),
|
||||||
@@ -253,6 +254,7 @@ class AssignmentRepository extends ServiceEntityRepository
|
|||||||
)
|
)
|
||||||
))
|
))
|
||||||
->setParameter('status', Assignment::STATUS_PUBLISHED)
|
->setParameter('status', Assignment::STATUS_PUBLISHED)
|
||||||
|
->setParameter('staffingStatus', Assignment::STATUS_STAFFED)
|
||||||
->setParameter('jobProfiles', $teamer->getJobProfiles())
|
->setParameter('jobProfiles', $teamer->getJobProfiles())
|
||||||
->setParameter('teamer', $teamer)
|
->setParameter('teamer', $teamer)
|
||||||
->setParameter('dateFrom', new \DateTimeImmutable())
|
->setParameter('dateFrom', new \DateTimeImmutable())
|
||||||
|
|||||||
Reference in New Issue
Block a user