Deploy FeWo mit PipelineManager / deploy (push) Successful in 4m44s
- Paket 8: Zahlungsarten (Gast an uns, laut Portal, Auszahlung, Erstattung), Portalbeträge als Angaben mit Quelle, Übersicht nach Zuständigkeit (R09). - Paket 5: Ändern mit Folgenvorschau, vereinbart oder dem Gast vorgeschlagen (signierter Link), ein Stornoweg mit Grund und Erstattung, Portalstorno erst nach Bestätigung. - Paket 6: eigene Nutzung, Besuch und Sperre als Vorgang mit Kurabgabe und Aufenthaltsbestätigung; Bestandsübernahme der Sperren mit identischem Export. - Wirksame Einstellungen (Expertenansicht), Abnahmekatalog T01–T14, Ergebnis-, Abnahme- und Konfigurationsdokument. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
36 lines
997 B
PHP
36 lines
997 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
use Filament\Support\Contracts\HasLabel;
|
|
|
|
/**
|
|
* The kinds of internal cases (A6): the landlord's own use, a private stay of family or friends, or a block without a
|
|
* guest (maintenance and the like). None of them has a rental contract, payment reminders, reviews or marketing.
|
|
*/
|
|
enum InternalKind: string implements HasLabel
|
|
{
|
|
case OwnUse = 'own_use';
|
|
case PrivateStay = 'private_stay';
|
|
case Block = 'block';
|
|
|
|
public function getLabel(): string
|
|
{
|
|
return match ($this) {
|
|
self::OwnUse => 'Eigene Nutzung',
|
|
self::PrivateStay => 'Private Überlassung (Familie, Freunde)',
|
|
self::Block => 'Sperre (z. B. Wartung)',
|
|
};
|
|
}
|
|
|
|
public function hasGuests(): bool
|
|
{
|
|
return $this === self::PrivateStay;
|
|
}
|
|
|
|
public static function fromPurpose(?BlockedPeriodPurpose $purpose): self
|
|
{
|
|
return $purpose === BlockedPeriodPurpose::OwnUse ? self::OwnUse : self::Block;
|
|
}
|
|
}
|