- Buchung ist der einheitliche Vorgang: Eingangsart, Vorgangsart A1–A6, eingefrorenes Abwicklungsprofil, gespeicherter Verlauf (booking_events); Gast, Personen und Beträge dürfen unbekannt sein, Platzhalter-Gäste werden migriert und nicht mehr angelegt - Einstellungen in Ebenen: Vermieterstandard (So arbeite ich), Abweichung der Wohnung (Experte), Abweichung je Portal und Eingangsart; ersetzt booking_model als Steuergröße - Ein Weg für extern verbindliche Buchungen (TakeOverExternalBooking) statt RecordPortalBooking und "Akte anlegen"; Portalpreis als belegte Gesamtposition - Startseite "Zu erledigen", neue Vorgangsseite mit nächstem Schritt, Automatik-Schalter, "Beenden" mit Storno statt Statusumschaltung; Status von Hand nur im Expertenmodus - Migration übernimmt bisheriges Verhalten unverändert (abweichende Wohnungswerte bleiben als Abweichung), Bericht: php artisan process:settings-report Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
29 lines
709 B
PHP
29 lines
709 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
use Filament\Support\Contracts\HasLabel;
|
|
|
|
/**
|
|
* Whether the system carries a case on by itself as far as the data allows, or prepares each step and waits for
|
|
* the landlord's release.
|
|
*/
|
|
enum ProcessingMode: string implements HasLabel
|
|
{
|
|
case Automatic = 'automatic';
|
|
case Manual = 'manual';
|
|
|
|
public function getLabel(): string
|
|
{
|
|
return match ($this) {
|
|
self::Automatic => 'Automatisch weiterbearbeiten',
|
|
self::Manual => 'Jeden Schritt selbst freigeben',
|
|
};
|
|
}
|
|
|
|
public static function fromOfferMode(OfferMode $mode): self
|
|
{
|
|
return $mode === OfferMode::Automatic ? self::Automatic : self::Manual;
|
|
}
|
|
}
|