Vorgangskern und geführte Vorgangsbearbeitung (Pakete 1 und 2, Prozessarchitektur v0.10)

- 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>
This commit is contained in:
LarsandClaude Opus 5.5 committed 2026-11-01 16:25:46 +01:00
1 parent 9005c12164
commit 3a728c3255
78 files changed
+4296 -1180

No files matched your search

+60
View File
@@ -0,0 +1,60 @@
<?php
namespace App\Enums;
use Filament\Support\Contracts\HasDescription;
use Filament\Support\Contracts\HasLabel;
/**
* The business constellation of a case (docs/Prozessarchitektur/01_Buchungsarchetypen.md). It follows from the way
* the case came in and who handles what – not from the channel's name alone.
*/
enum CaseType: string implements HasDescription, HasLabel
{
/** Own website or own direct way (phone, e-mail): request, own offer, acceptance. */
case A1 = 'a1';
/** Non-binding request passed on by an intermediary; own offer like A1. */
case A2 = 'a2';
/** Binding external booking, everything else is handled by the landlord. */
case A3 = 'a3';
/** Binding external booking with split handling (e.g. the portal collects the payments). */
case A4 = 'a4';
/** Binding external booking the portal handles almost completely. */
case A5 = 'a5';
/** Own use, private stay, maintenance or another block. */
case A6 = 'a6';
public function getLabel(): string
{
return match ($this) {
self::A1 => 'Eigene Anfrage',
self::A2 => 'Anfrage über ein Portal',
self::A3 => 'Portalbuchung, Abwicklung bei uns',
self::A4 => 'Portalbuchung, Zahlung über das Portal',
self::A5 => 'Portalbuchung, Abwicklung durch das Portal',
self::A6 => 'Eigene Nutzung / Sperre',
};
}
public function getDescription(): string
{
return match ($this) {
self::A1 => 'Anfrage → Angebot → Annahme durch den Gast',
self::A2 => 'Anfrage aus einem Portal, Angebot und Vertrag von uns',
self::A3 => 'Beim Portal schon verbindlich; Unterlagen, Zahlung und Gastkontakt übernehmen wir',
self::A4 => 'Beim Portal schon verbindlich; Unterlagen von uns, das Geld zieht das Portal ein',
self::A5 => 'Beim Portal schon verbindlich; das Portal erledigt Vertrag und Zahlung',
self::A6 => 'Eigenbelegung, private Überlassung, Wartung oder sonstige Sperre',
};
}
public function isExternallyBinding(): bool
{
return in_array($this, [self::A3, self::A4, self::A5], true);
}
}