feat: timeline displaying assignments and dispositions

This commit is contained in:
Björn Fromme
2025-03-15 11:34:12 +01:00
parent 3d85949ade
commit b55d847c85
6 changed files with 395 additions and 1 deletions
+13
View File
@@ -147,6 +147,19 @@ class Destination implements TimestampableEntityInterface, SoftDeletableEntityIn
return $this->hotelCode;
}
public function getHotelCodeNormalized(): ?string
{
if (null === $hotelCode = $this->hotelCode) {
return null;
}
if (str_starts_with($hotelCode, 'SER')) {
return substr($hotelCode, 2, 3);
}
return substr($hotelCode, 0, 3);
}
public function setHotelCode(?string $hotelCode): static
{
$this->hotelCode = $hotelCode;