u
This commit is contained in:
@@ -168,8 +168,9 @@ export class OrderDocumentsTiles extends PureComponent {
|
|||||||
const pd = Number(paidTotal) || 0;
|
const pd = Number(paidTotal) || 0;
|
||||||
const openAmount = Math.max(0, tot - pd);
|
const openAmount = Math.max(0, tot - pd);
|
||||||
|
|
||||||
const statusLabel = paid ? 'Bezahlt' : pd > 0 ? 'Teilzahlung' : 'Offen';
|
const isPaid = Boolean(paid || tot <= 0 || (tot > 0 && pd >= tot));
|
||||||
const statusColor = paid ? 'success' : pd > 0 ? 'warning' : 'error';
|
const statusLabel = isPaid ? 'Bezahlt' : pd > 0 ? 'Teilzahlung' : 'Offen';
|
||||||
|
const statusColor = isPaid ? 'success' : pd > 0 ? 'warning' : 'error';
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<PanelTile wide={1} minHeight={220} color={YELLOW_PANEL} title="Zahlungen">
|
<PanelTile wide={1} minHeight={220} color={YELLOW_PANEL} title="Zahlungen">
|
||||||
|
|||||||
Reference in New Issue
Block a user