Buchungsprozess: Angebots-Snapshot, atomare Annahme, Auto-Angebot, Kanalfreigabe
Deploy FeWo mit PipelineManager / deploy (push) Failing after 3m38s
Deploy FeWo mit PipelineManager / deploy (push) Failing after 3m38s
- Angebotsbedingungen und Zahlungsdaten werden je Version eingefroren (offer_terms, offer_hash) - Annahme in einer gesperrten Transaktion, idempotent, mit Nachweis; Mail- und Portalfehler machen eine gespeicherte Buchung nicht ungueltig (Postfach, Nachversand) - Je Wohnung: manuelle/automatische Angebote, optionale Vorreservierung - Automatische Freigabe abhaengig von aktuellen Importen und Feed-Abruf bei Sofortbuchungsportalen - Deutsche Fehlerseiten, Buchungsseite zeigt Angebots- und Zustellstatus - Dokumentation: BOOKING-E2E-*.md, BOOKING-COMPLIANCE-HANDOVER.md Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e7cc37a15b
commit
eafab8a2cb
47 files changed
+2099
-104
No files matched your search
@@ -1,4 +1,6 @@
|
||||
@php($money = fn (int $cents): string => \App\Support\Money::format($cents))
|
||||
@php($owner = \App\Documents\OfferTerms::owner($booking))
|
||||
@php($bank = \App\Documents\OfferTerms::bank($booking))
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
@@ -23,7 +25,7 @@
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="footer">{{ config('fewo.owner.name') }} · {{ config('fewo.owner.street') }} · {{ config('fewo.owner.city') }} · {{ config('fewo.owner.phone') }} · {{ config('fewo.owner.email') }}</div>
|
||||
<div class="footer">{{ ($owner['name'] ?? null) }} · {{ ($owner['street'] ?? null) }} · {{ ($owner['city'] ?? null) }} · {{ ($owner['phone'] ?? null) }} · {{ ($owner['email'] ?? null) }}</div>
|
||||
|
||||
@if ($logo ?? null)
|
||||
<img src="{{ $logo }}" alt="" style="max-height: 18mm; max-width: 60mm; margin-bottom: 4mm;">
|
||||
@@ -32,22 +34,22 @@
|
||||
@if ($draft ?? false)
|
||||
<h1>Angebot und Mietvertrag (Entwurf)</h1>
|
||||
<p class="muted">Angebot {{ $booking->reference }} · Version {{ $booking->offer_version }} · erstellt am {{ ($booking->offer_sent_at ?? now())->format('d.m.Y') }} · gültig bis {{ $booking->hold_expires_at?->format('d.m.Y, H:i') }} Uhr</p>
|
||||
<p><strong>{{ \App\Support\Content::get('offer.contract_note') }}</strong></p>
|
||||
<p><strong>{{ $booking->offerText('offer.contract_note') }}</strong></p>
|
||||
@else
|
||||
<h1>Mietvertrag Ferienwohnung</h1>
|
||||
<p class="muted">Buchungsnummer {{ $booking->reference }} · ausgestellt am {{ ($booking->confirmed_at ?? now())->format('d.m.Y') }}@if ($booking->accepted_at) · Angebot angenommen am {{ $booking->accepted_at->format('d.m.Y, H:i') }} Uhr @endif</p>
|
||||
@endif
|
||||
|
||||
<p>{{ \App\Support\Content::get('contract.intro') }}</p>
|
||||
<p>{{ $booking->offerText('contract.intro') }}</p>
|
||||
|
||||
<table class="parties">
|
||||
<tr>
|
||||
<td>
|
||||
<h2>Vermieter</h2>
|
||||
{{ config('fewo.owner.name') }}<br>
|
||||
{{ config('fewo.owner.street') }}<br>
|
||||
{{ config('fewo.owner.city') }}<br>
|
||||
Tel. {{ config('fewo.owner.phone') }} · {{ config('fewo.owner.email') }}
|
||||
{{ ($owner['name'] ?? null) }}<br>
|
||||
{{ ($owner['street'] ?? null) }}<br>
|
||||
{{ ($owner['city'] ?? null) }}<br>
|
||||
Tel. {{ ($owner['phone'] ?? null) }} · {{ ($owner['email'] ?? null) }}
|
||||
</td>
|
||||
<td>
|
||||
<h2>Mieter</h2>
|
||||
@@ -84,24 +86,24 @@
|
||||
<p>Anzahlung <strong>{{ $money($booking->deposit) }}</strong> bis zum <strong>{{ $booking->deposit_due_on?->format('d.m.Y') }}</strong>,
|
||||
Restbetrag <strong>{{ $money($booking->total - $booking->deposit) }}</strong> bis zum <strong>{{ $booking->balance_due_on->format('d.m.Y') }}</strong>.</p>
|
||||
@endif
|
||||
@if (config('fewo.bank.iban'))
|
||||
<p>Bankverbindung: {{ config('fewo.bank.account_holder') }} · IBAN {{ config('fewo.bank.iban') }}@if (config('fewo.bank.bic')) · BIC {{ config('fewo.bank.bic') }}@endif · Verwendungszweck: {{ $booking->reference }}</p>
|
||||
@if (($bank['iban'] ?? null))
|
||||
<p>Bankverbindung: {{ ($bank['account_holder'] ?? null) }} · IBAN {{ ($bank['iban'] ?? null) }}@if (($bank['bic'] ?? null)) · BIC {{ ($bank['bic'] ?? null) }}@endif · Verwendungszweck: {{ $booking->reference }}</p>
|
||||
@endif
|
||||
|
||||
<h2>Mietbedingungen</h2>
|
||||
<div class="rich">{{ \App\Support\Content::html('contract.terms') }}</div>
|
||||
<div class="rich">{{ $booking->offerHtml('contract.terms') }}</div>
|
||||
|
||||
@if (\App\Support\Content::get('stay.cancellation'))
|
||||
@if ($booking->offerText('stay.cancellation'))
|
||||
<h2>Rücktritt / Stornierung</h2>
|
||||
<div class="rich">{{ \App\Support\Content::html('stay.cancellation') }}</div>
|
||||
<div class="rich">{{ $booking->offerHtml('stay.cancellation') }}</div>
|
||||
@endif
|
||||
|
||||
@if (\App\Support\Content::get('stay.house_rules'))
|
||||
@if ($booking->offerText('stay.house_rules'))
|
||||
<h2>Hausordnung</h2>
|
||||
<div class="rich">{{ \App\Support\Content::html('stay.house_rules') }}</div>
|
||||
<div class="rich">{{ $booking->offerHtml('stay.house_rules') }}</div>
|
||||
@endif
|
||||
|
||||
<p style="margin-top: 8mm">{{ \App\Support\Content::get('contract.closing') }}</p>
|
||||
<p>{{ config('fewo.owner.name') }}</p>
|
||||
<p style="margin-top: 8mm">{{ $booking->offerText('contract.closing') }}</p>
|
||||
<p>{{ ($owner['name'] ?? null) }}</p>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user