From c315760a43d6f97f23dd92cf79fab1782280cad3 Mon Sep 17 00:00:00 2001 From: Dicken Date: Tue, 26 May 2026 12:45:19 +0200 Subject: [PATCH] Dateien nach "frontend/src/tools" hochladen --- frontend/src/tools/bestellungen.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/tools/bestellungen.jsx b/frontend/src/tools/bestellungen.jsx index 19671c9..bff5457 100644 --- a/frontend/src/tools/bestellungen.jsx +++ b/frontend/src/tools/bestellungen.jsx @@ -463,8 +463,10 @@ export default function Bestellungen({ toast, mobile }) { catch(e) { toast(e.message,'error'); } finally { setDelId(null); } }; + const sq = search.trim().toLowerCase(); const filtered = orders.filter(o => { - const ms = !search.trim() || o.name.toLowerCase().includes(search.toLowerCase()); + const ms = !sq || o.name.toLowerCase().includes(sq) + || (o.items && o.items.some(i => i.calc_name.toLowerCase().includes(sq))); const mf = filterStatus==='alle' ? true : filterStatus==='bezahlt'