Stornoregeln mit automatischer Kostenberechnung, Storno-Verwaltung, Vertragsanlagen
Deploy FeWo mit PipelineManager / deploy (push) Successful in 3m34s

- Stornoregel (Stufen nach Tagen vor Anreise, Mietpreis oder Gesamtpreis, Ersatzmieter-Gebuehr), je Vertragsvorlage,
  beim Angebot eingefroren, als Platzhalter im Vertrag
- Stornierung (Gast-Link oder Verwaltung) berechnet die Kosten, legt einen Stornofall an; Verwaltung Stornierungen
  mit Vorschlag, Festlegung, Saldo, Abrechnung und Erlass; Gast sieht die Kosten vorab auf der Storno-Seite
- Vertragsanlagen als eigene versionierte Dokumente mit Bedingung (immer, Zusatzleistung, Portal, von Hand),
  je Angebot ausgewaehlt und eingefroren; Zusatzleistungen in der Buchung erfassbar
- FeWo-direkt-Installation legt die Stornoregel aus Paragraf 13 an

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Sonnet 5.5 committed 2026-10-30 16:32:48 +01:00
1 parent 5baf39441f
commit 0c4187edaf
37 files changed
+1440 -10

No files matched your search

@@ -19,4 +19,10 @@
<div class="prose max-w-none">{{ $booking->offerHtml('stay.cancellation') }}</div>
@endif
@endif
@foreach (\App\Documents\OfferTerms::annexes($booking) as $extraAnnex)
<hr>
<h3 class="font-semibold">Anlage: {{ $extraAnnex['title'] }} <span class="text-gray-400">(Version {{ $extraAnnex['version'] }})</span></h3>
<div class="prose max-w-none">{!! $extraAnnex['html'] !!}</div>
@endforeach
</div>
@@ -5,6 +5,11 @@
**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()) }}
@php($cost = \App\Support\CancellationCost::calculate($booking, $booking->cancelled_at ?? now()))
@if ($cost)
**Stornoregel „{{ $cost['policy'] }}“:** {{ $cost['tier_text'] }} → Vorschlag **{{ \App\Support\Money::format($cost['fee']) }}** (Basis {{ \App\Support\Money::format($cost['base_amount']) }}).
@endif
@if ($cancelled)
Die Buchung wurde sofort storniert und der Zeitraum ist frei. **Stornokosten und eine mögliche Rückzahlung bitte von Hand prüfen** (Aufgabe unter „Zahlungen & Wünsche“).
@else
+4
View File
@@ -77,6 +77,10 @@
<div class="prose-theme mt-2">{{ $booking->offerHtml('stay.cancellation') }}</div>
@endif
@endif
@foreach (\App\Documents\OfferTerms::annexes($booking) as $extraAnnex)
<h3 class="mt-6 font-semibold">Anlage: {{ $extraAnnex['title'] }}</h3>
<div class="prose-theme mt-2">{!! $extraAnnex['html'] !!}</div>
@endforeach
<p class="mt-4 text-sm text-muted">Den vollständigen Vertragsentwurf finden Sie als PDF im Anhang unserer E-Mail.</p>
</section>
@@ -42,5 +42,11 @@
{!! $document['annex'] !!}
</div>
@endif
@foreach (\App\Documents\OfferTerms::annexes($booking) as $extraAnnex)
<div class="annex">
<h1>{{ $extraAnnex['title'] }}</h1>
{!! $extraAnnex['html'] !!}
</div>
@endforeach
</body>
</html>
+5
View File
@@ -103,6 +103,11 @@
<div class="rich">{{ $booking->offerHtml('stay.house_rules') }}</div>
@endif
@foreach (\App\Documents\OfferTerms::annexes($booking) as $extraAnnex)
<h2>Anlage: {{ $extraAnnex['title'] }}</h2>
<div class="rich">{!! $extraAnnex['html'] !!}</div>
@endforeach
<p style="margin-top: 8mm">{{ $booking->offerText('contract.closing') }}</p>
<p>{{ ($owner['name'] ?? null) }}</p>
</body>
@@ -30,6 +30,10 @@
<div class="prose-theme mt-2">{{ $booking->offerHtml('stay.cancellation') }}</div>
@endif
@if ($cost)
<p class="mt-4 rounded border border-line p-4">Nach den vereinbarten Stornobedingungen würde eine Stornierung <strong>heute</strong> {{ $cost['fee'] === 0 ? 'keine Kosten' : \App\Support\Money::format($cost['fee']) }} verursachen ({{ $cost['tier_text'] }}).</p>
@endif
<form method="post" action="{{ $action }}" class="mt-6">
@csrf
@if ($instant)