This commit is contained in:
seb
2026-10-21 04:29:21 +02:00
parent ae245af6d7
commit a2103b9d0b

View File

@@ -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 (
<PanelTile wide={1} minHeight={220} color={YELLOW_PANEL} title="Zahlungen">