From a2103b9d0b63d8629c418ba8c436d80e15ee4b8a Mon Sep 17 00:00:00 2001 From: seb Date: Wed, 21 Oct 2026 04:29:21 +0200 Subject: [PATCH] u --- src/components/manifest/OrderDocumentsTiles.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 (