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

@@ -64,7 +64,7 @@
@endif
@if (!$event['guest_assigned'] && $event['kind'] === 'reservation')<small>Gastzuordnung offen</small>@endif
@if ($event['needs_review'])<small>Klärung erforderlich</small>@endif
<small class="occupancy-open">{{ $event['record_type'] === 'booking' ? 'Akte öffnen →' : ($event['kind'] === 'block' ? 'Details →' : 'Akte anlegen →') }}</small>
<small class="occupancy-open">{{ $event['record_type'] === 'booking' ? 'Vorgang öffnen →' : ($event['kind'] === 'block' ? 'Details →' : 'Als Buchung übernehmen →') }}</small>
</a>
@endforeach
@foreach ($day['departures'] as $event)
@@ -76,7 +76,7 @@
<div class="occupancy-list">
<h2 style="font-size:1.1rem;font-weight:700">Alle Vorgänge dieses Zeitraums</h2>
<table>
<thead><tr><th>Zeitraum</th><th>Art / Status</th><th>Gast</th><th>Kanal / Quelle</th><th>Hinweise</th><th>Akte</th></tr></thead>
<thead><tr><th>Zeitraum</th><th>Art / Status</th><th>Gast</th><th>Kanal / Quelle</th><th>Hinweise</th><th>Vorgang</th></tr></thead>
<tbody>
@forelse ($calendar['rows'] as $event)
<tr>
@@ -95,7 +95,7 @@
@endif
</td>
<td>{{ $event['review_note'] ?? ($event['kind'] === 'block' ? $event['reason'] : null) }}@if ($event['representations'])<br>{{ $event['representations'] }} zugeordnete Kalenderdarstellung(en)@endif</td>
<td><x-filament::button tag="a" size="sm" :href="$event['url']">{{ $event['record_type'] === 'booking' ? 'Akte öffnen' : ($event['kind'] === 'block' ? 'Details' : 'Akte anlegen') }}</x-filament::button></td>
<td><x-filament::button tag="a" size="sm" :href="$event['url']">{{ $event['record_type'] === 'booking' ? 'Vorgang öffnen' : ($event['kind'] === 'block' ? 'Details' : 'Als Buchung übernehmen') }}</x-filament::button></td>
</tr>
@empty
<tr><td colspan="6">Keine Vorgänge in diesem Zeitraum.</td></tr>
@@ -0,0 +1,24 @@
<x-filament-widgets::widget>
<x-filament::section icon="heroicon-o-check-circle" :heading="'Zu erledigen'" :description="count($items) === 0 ? null : (count($items) === 1 ? 'Eine Sache wartet auf Sie.' : count($items).' Sachen warten auf Sie.')">
@if (count($items) === 0)
<p style="font-size:1.05rem">Alles erledigt – im Moment ist nichts zu tun.</p>
@else
<ul style="list-style:none;margin:0;padding:0">
@foreach ($items as $item)
<li style="display:flex;gap:1rem;align-items:center;justify-content:space-between;padding:.8rem 0;border-bottom:1px solid rgba(128,128,128,.2)">
<div style="min-width:0">
<div style="font-size:1.05rem;font-weight:600">
<x-filament::badge :color="$item['tone']" style="display:inline-flex;vertical-align:middle;margin-right:.4rem">{{ match ($item['tone']) { 'danger' => 'dringend', 'info' => 'Hinweis', default => 'zu tun' } }}</x-filament::badge>
{{ $item['title'] }}
</div>
@if ($item['detail'])
<div style="color:#6b7280;font-size:.9rem;margin-top:.15rem">{{ $item['detail'] }}</div>
@endif
</div>
<x-filament::button tag="a" :href="$item['url']" size="lg" :color="$item['tone'] === 'info' ? 'gray' : 'primary'">{{ $item['button'] }}</x-filament::button>
</li>
@endforeach
</ul>
@endif
</x-filament::section>
</x-filament-widgets::widget>
@@ -1,7 +1,7 @@
<x-mail::message :site="$booking->website()" :message="$message ?? null">
# {{ $cancelled ? 'Buchung vom Gast storniert' : 'Stornierungswunsch eines Gastes' }}
**{{ $booking->guest->full_name }}** · Buchung **{{ $booking->reference }}** · {{ $booking->property->name }}<br>
**{{ $booking->guestName() }}** · Buchung **{{ $booking->reference }}** · {{ $booking->property->name }}<br>
**Zeitraum:** {{ $booking->arrival->format('d.m.Y') }} – {{ $booking->departure->format('d.m.Y') }}<br>
**Gesamtpreis:** {{ \App\Support\Money::format($booking->total) }}, bezahlt {{ \App\Support\Money::format($booking->paidAmount()) }}
+4 -4
View File
@@ -53,10 +53,10 @@
</td>
<td>
<h2>Mieter</h2>
{{ $booking->guest->full_name }}<br>
@if ($booking->guest->street){{ $booking->guest->street }}<br>@endif
@if ($booking->guest->city){{ $booking->guest->postal_code }} {{ $booking->guest->city }}<br>@endif
{{ $booking->guest->email }}@if ($booking->guest->phone) · {{ $booking->guest->phone }}@endif
{{ $booking->guestName() }}<br>
@if ($booking->guest?->street){{ $booking->guest->street }}<br>@endif
@if ($booking->guest?->city){{ $booking->guest->postal_code }} {{ $booking->guest->city }}<br>@endif
{{ $booking->guest?->email }}@if ($booking->guest?->phone) · {{ $booking->guest->phone }}@endif
</td>
</tr>
</table>