u
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user