Füge Zahlungshistorie und Einzelbeleg (PDF) im Mitgliederbereich hinzu
CI Feature / test (push) Successful in 3m23s
Deploy Test / test (push) Successful in 3m45s
Deploy Test / deploy (push) Successful in 39s

Mein Konto, Zahlungen: eigene Zahlungen und Rückzahlungen mit Beleg als PDF, auch von der
Bestellseite verlinkt. Der Beleg entsteht aus den bei der Buchung festgehaltenen Angaben und ist
byte-gleich; er heißt nie Rechnung und trägt weder Rechnungsnummer noch Steuerangaben. Kleiner
PDF-Schreiber ohne neue Abhängigkeit. Aussteller und Hinweis nur bei Pflege (SHOP_RECEIPT_*).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Sonnet 5.5 committed 2026-11-23 08:23:40 +01:00
1 parent dd3cc83057
commit 78c8870e4e
14 files changed
+814

No files matched your search

+14
View File
@@ -72,6 +72,20 @@
<button class="button button-quiet" type="submit">Testzahlung ablehnen</button>
</form>
@endif
@if (in_array($order->status, ['bezahlt', 'erstattet'], true) && $receipts->isNotEmpty())
<ul class="mb-payments" aria-label="Belege zu dieser Bestellung">
@foreach ($receipts as $entry)
<li class="mb-payment @if ($entry->isRefund()) is-refund @endif">
<div class="mb-payment-main">
<p class="mb-payment-title"><strong>{{ $entry->isRefund() ? 'Rückzahlung' : 'Zahlung' }}</strong> am {{ \App\Domain\Commerce\PaymentJournal::local($entry->occurred_at)->format('d.m.Y') }}</p>
</div>
<p class="mb-payment-amount">{{ $entry->amount_cents < 0 ? '−' : '' }}{{ $money(abs($entry->amount_cents)) }}</p>
<div class="mb-payment-action"><a class="button button-secondary" href="{{ route('member.payments.receipt', $entry) }}">Beleg herunterladen (PDF)</a></div>
</li>
@endforeach
</ul>
<p class="mb-muted"><a href="{{ route('member.payments') }}">Alle meine Zahlungen</a></p>
@endif
@if ($order->status === 'bezahlt')
<p><a class="button" href="{{ route('member.library') }}">Zur Bibliothek</a></p>
@if (! $stripePayment && ! $invoiceOrder && ! app()->isProduction() && config('services.payment.driver') === 'test')