diff --git a/src/components/credits/CreditList.jsx b/src/components/credits/CreditList.jsx index 55bd225..823b12e 100644 --- a/src/components/credits/CreditList.jsx +++ b/src/components/credits/CreditList.jsx @@ -1,10 +1,8 @@ import { useEffect, useState } from 'react' -import { FaSpinner } from 'react-icons/fa6' -import { Card, Badge, Button } from '../ui' +import { Badge, EmptyState, Tabs } from '../ui' import { listCredits } from '../../lib/teamApi' -import { creditStatus } from '../../lib/creditFormat' +import { creditActionLabel, creditStatus, creditStatusNote } from '../../lib/creditFormat' import { fmtDate, fmtDateTime, formatCents } from '../../lib/format' -import '../../styles/admin-areas.css' // Liste der Uebernahmegutschriften (Filter "Offen"/"Alle"), wie im frueheren Admin-Panel; optional nur ein Kunde export default function CreditList({ customerId, selectedId, onSelect, reloadKey }) { @@ -23,41 +21,52 @@ export default function CreditList({ customerId, selectedId, onSelect, reloadKey return (
| Eingang | +Kunde | +Leistung / bisher bei | +Rechnung | +Bezahlt bis | +Status | ++ |
|---|---|---|---|---|---|---|
| {fmtDateTime(r.createdAt)} {r.ref} |
+
+ {r.customerName}
+ {r.customerCode && Kd.-Nr. {r.customerCode} }
+ |
+ {r.services} {r.provider}{r.domain ? ` · ${r.domain}` : ''} |
+ {formatCents(r.invoiceAmountCents)} für {r.billingMonths} Mon. |
+ {fmtDate(r.paidUntil)} | +
{formatCents(r.amountCents)}{r.appliedAt ? '' : ' · nicht gebucht'}>} - - - - - + {note && {note} }
+ |
+ + + | +
+
Übernahmegutschrift: Der Kunde hat Domain, Hosting oder E-Mail beim bisherigen Anbieter schon bezahlt. Nach der Prüfung wird der doppelt bezahlte Anteil als Guthaben in Stripe gebucht und mit den nächsten Abo-Rechnungen verrechnet.