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

+3 -4
View File
@@ -6,7 +6,6 @@
use App\Actions\CreateReservation;
use App\Actions\SendOffer;
use App\Enums\BookingStatus;
use App\Enums\OfferMode;
use App\Exceptions\ReservationException;
use App\Mail\NewReservation;
use App\Mail\OfferMade;
@@ -86,7 +85,7 @@ public function test_automatic_offer_can_be_accepted_end_to_end(): void
public function test_without_pre_reservation_a_request_blocks_nothing(): void
{
$this->property->update(['pre_reservation_enabled' => false]);
Settings::tenant()->update(['process_defaults' => ['pre_reservation' => false]]);
$first = $this->request();
$second = $this->request('other@example.org');
@@ -100,7 +99,7 @@ public function test_without_pre_reservation_a_request_blocks_nothing(): void
public function test_automatic_mode_without_pre_reservation_falls_back_to_manual_and_says_why(): void
{
$this->property->update(['offer_mode' => OfferMode::Automatic, 'pre_reservation_enabled' => false]);
Settings::tenant()->update(['process_defaults' => ['processing' => 'automatic', 'pre_reservation' => false]]);
$booking = $this->request();
@@ -205,7 +204,7 @@ public function test_live_operation_needs_released_contract_texts_for_automatic_
private function automatic(): void
{
$this->property->update(['offer_mode' => OfferMode::Automatic]);
Settings::tenant()->update(['process_defaults' => ['processing' => 'automatic']]);
}
private function request(string $email = 'gast@example.org', string $arrival = '2026-11-07', string $departure = '2026-11-10'): Booking