Dokumentenzusammenstellung und Vorlagensteuerung (Paket 3, Prozessarchitektur v0.10)
Deploy FeWo mit PipelineManager / deploy (push) Successful in 3m59s
Deploy FeWo mit PipelineManager / deploy (push) Successful in 3m59s
Eine Zusammenstellung vor jedem Dokument (Angebot, Bestaetigung, Buchungsunterlagen extern), Dokumentart je Vorgangsart, Freigaben fuer Vorlagen und Dokumentarten, Schutz vor unvereinbarten Bedingungen bei Portalbuchungen (E-004), kein doppelter Versand, Absicherung Hold 0 bis Paket 7, A6-Aufenthaltsbestaetigung vorbereitet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
64248c09fa
commit
cf11c8a474
45 files changed
+2385
-144
No files matched your search
@@ -1,11 +1,13 @@
|
||||
@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))
|
||||
@php($external = ($kind ?? null) === \App\Enums\DocumentKind::ExternalRecord)
|
||||
@php($portal = $booking->processChannel()?->name ?? 'das Portal')
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Mietvertrag {{ $booking->reference }}</title>
|
||||
<title>{{ $external ? 'Buchungsunterlagen' : 'Mietvertrag' }} {{ $booking->reference }}</title>
|
||||
<style>
|
||||
@page { margin: 22mm 20mm 20mm 20mm; }
|
||||
body { font-family: 'DejaVu Sans', sans-serif; font-size: 9.5pt; color: #1f2933; line-height: 1.45; }
|
||||
@@ -35,6 +37,10 @@
|
||||
<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>{{ $booking->offerText('offer.contract_note') }}</strong></p>
|
||||
@elseif ($external)
|
||||
<h1>Buchungsunterlagen Ferienwohnung</h1>
|
||||
<p class="muted">Gebucht über {{ $portal }}@if ($booking->portal_reference) · Buchungsnummer {{ $booking->portal_reference }}@endif · unsere Nummer {{ $booking->reference }} · ausgestellt am {{ now()->format('d.m.Y') }}</p>
|
||||
<p>Die Buchung ist über {{ $portal }} verbindlich zustande gekommen. Dieses Dokument hält die Buchung fest.</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>
|
||||
@@ -80,13 +86,15 @@
|
||||
<p class="muted">Die Kurtaxe ist nicht enthalten und wird vor Ort entrichtet.</p>
|
||||
|
||||
<h2>Zahlung</h2>
|
||||
@if ($booking->requiresFullPayment())
|
||||
@if ($external && ! $booking->wantsPaymentTasks())
|
||||
<p>Die Zahlung läuft über {{ $portal }}.</p>
|
||||
@elseif ($booking->requiresFullPayment())
|
||||
<p>Der Gesamtbetrag von <strong>{{ $money($booking->total) }}</strong> ist bis zum <strong>{{ $booking->deposit_due_on->format('d.m.Y') }}</strong> zu überweisen.</p>
|
||||
@else
|
||||
<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 (($bank['iban'] ?? null))
|
||||
@if (($bank['iban'] ?? null) && ! ($external && ! $booking->wantsPaymentTasks()))
|
||||
<p>Bankverbindung: {{ ($bank['account_holder'] ?? null) }} · IBAN {{ ($bank['iban'] ?? null) }}@if (($bank['bic'] ?? null)) · BIC {{ ($bank['bic'] ?? null) }}@endif · Verwendungszweck: {{ $booking->reference }}</p>
|
||||
@endif
|
||||
|
||||
|
||||
Reference in new issue
Block a user