diff --git a/src/components/manifest/OrderDocumentsTiles.jsx b/src/components/manifest/OrderDocumentsTiles.jsx index 6387a24..be8477d 100644 --- a/src/components/manifest/OrderDocumentsTiles.jsx +++ b/src/components/manifest/OrderDocumentsTiles.jsx @@ -168,8 +168,9 @@ export class OrderDocumentsTiles extends PureComponent { const pd = Number(paidTotal) || 0; const openAmount = Math.max(0, tot - pd); - const statusLabel = paid ? 'Bezahlt' : pd > 0 ? 'Teilzahlung' : 'Offen'; - const statusColor = paid ? 'success' : pd > 0 ? 'warning' : 'error'; + const isPaid = Boolean(paid || tot <= 0 || (tot > 0 && pd >= tot)); + const statusLabel = isPaid ? 'Bezahlt' : pd > 0 ? 'Teilzahlung' : 'Offen'; + const statusColor = isPaid ? 'success' : pd > 0 ? 'warning' : 'error'; return (