update
This commit is contained in:
@@ -259,11 +259,10 @@ export default function Bestellungen() {
|
|||||||
{/* ── Summary Cards ── */}
|
{/* ── Summary Cards ── */}
|
||||||
<Box sx={{ display: 'grid', gridTemplateColumns: 'repeat(auto-fit, minmax(160px, 1fr))', gap: 2, mb: 3 }}>
|
<Box sx={{ display: 'grid', gridTemplateColumns: 'repeat(auto-fit, minmax(160px, 1fr))', gap: 2, mb: 3 }}>
|
||||||
{[
|
{[
|
||||||
{ label: 'Entwurf / Genehmigung', count: orders.filter(o => o.status === 'entwurf' || o.status === 'wartet_auf_genehmigung').length, color: 'text.secondary' },
|
{ label: 'Wartet auf Genehmigung', count: orders.filter(o => o.status === 'wartet_auf_genehmigung').length, color: 'warning.main' },
|
||||||
{ label: 'Bereit / Bestellt', count: orders.filter(o => o.status === 'bereit_zur_bestellung' || o.status === 'bestellt').length, color: 'primary.main' },
|
{ label: 'Bereit zur Bestellung', count: orders.filter(o => o.status === 'bereit_zur_bestellung').length, color: 'info.main' },
|
||||||
{ label: 'Teillieferung', count: orders.filter(o => o.status === 'teillieferung').length, color: 'warning.main' },
|
{ label: 'Bestellt', count: orders.filter(o => o.status === 'bestellt').length, color: 'primary.main' },
|
||||||
{ label: 'Lieferung prüfen', count: orders.filter(o => o.status === 'lieferung_pruefen').length, color: 'secondary.main' },
|
{ label: 'Lieferung prüfen', count: orders.filter(o => o.status === 'lieferung_pruefen').length, color: 'secondary.main' },
|
||||||
{ label: 'Gesamt', count: orders.length, color: 'text.primary' },
|
|
||||||
].map(({ label, count, color }) => (
|
].map(({ label, count, color }) => (
|
||||||
<Paper variant="outlined" key={label} sx={{ p: 2, textAlign: 'center' }}>
|
<Paper variant="outlined" key={label} sx={{ p: 2, textAlign: 'center' }}>
|
||||||
<Typography variant="h4" sx={{ color, fontWeight: 700 }}>{count}</Typography>
|
<Typography variant="h4" sx={{ color, fontWeight: 700 }}>{count}</Typography>
|
||||||
|
|||||||
Reference in New Issue
Block a user