From 360deb725730fb25662329a3f6e0f27a1098bc78 Mon Sep 17 00:00:00 2001 From: Dicken Date: Tue, 26 May 2026 00:56:24 +0200 Subject: [PATCH] Dateien nach "frontend/src/tools" hochladen --- frontend/src/tools/bestellungen.jsx | 54 ++++++++++++++++++++++++----- 1 file changed, 46 insertions(+), 8 deletions(-) diff --git a/frontend/src/tools/bestellungen.jsx b/frontend/src/tools/bestellungen.jsx index ae68405..8abaab6 100644 --- a/frontend/src/tools/bestellungen.jsx +++ b/frontend/src/tools/bestellungen.jsx @@ -7,6 +7,7 @@ const STATUS = { in_arbeit: { label:'In Arbeit', color:'#4ecdc4', bg:'rgba(78,205,196,0.12)' }, fertig: { label:'Fertig', color:'#6bcb77', bg:'rgba(107,203,119,0.12)' }, }; +const BEZAHLT = { color:'#c084fc', bg:'rgba(192,132,252,0.12)' }; const STATUS_KEYS = ['warteliste','in_arbeit','fertig']; const PREISE = [ @@ -116,6 +117,19 @@ function BestellungDetail({ id, toast, onBack }) { {id ? (editMode?'Bearbeiten':order?.name) : 'Neue Bestellung'} {order && !editMode && } + {order && !editMode && ( + + )} {order && !editMode && ( ))} @@ -459,7 +489,15 @@ export default function Bestellungen({ toast, mobile }) { {new Date(order.created_at).toLocaleDateString('de-DE')} - +
+ {order.bezahlt && ( + + 💜 Bezahlt + + )} + {!order.bezahlt && } +
{/* Positions-Fortschritt + Festpreis-Summe */}