fix: hide called off assignments from timeline, adjust status colors
This commit is contained in:
@@ -35,7 +35,7 @@ class TimelineItem
|
||||
->setDateTo($dateTo)
|
||||
->setJobProfile($assignment->getJobProfile()->getName())
|
||||
->setDateRange(sprintf('%s - %s', $dateFrom->format('d.m.Y'), $dateTo->format('d.m.Y')))
|
||||
->setStatus($assignment->getStatus())
|
||||
->setStatus($assignment->getStaffingStatus())
|
||||
;
|
||||
}
|
||||
|
||||
|
||||
@@ -18,6 +18,11 @@ class TimelineService
|
||||
$rows = [];
|
||||
|
||||
foreach ($assignments as $assignment) {
|
||||
// exclude called off assignments
|
||||
// TODO: refactor filtering to do this on database level
|
||||
if (Assignment::STATUS_CALLED_OFF === $assignment->getStatus()) {
|
||||
continue;
|
||||
}
|
||||
$destination = $assignment->getDestination();
|
||||
$hotelCode = $destination->getHotelCodeNormalized();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user