From 188f121cda1f410ec175b4c28e57fafbd8ce88ac Mon Sep 17 00:00:00 2001 From: Dicken Date: Thu, 28 May 2026 13:22:40 +0200 Subject: [PATCH] =?UTF-8?q?Bestellungen:=20Festpreis=20pro=20Position=20zu?= =?UTF-8?q?r=C3=BCcksetzen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/tools/bestellungen.jsx | 32 ++++++++++++++++++----------- 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/frontend/src/tools/bestellungen.jsx b/frontend/src/tools/bestellungen.jsx index 2f5b2c1..95566f1 100644 --- a/frontend/src/tools/bestellungen.jsx +++ b/frontend/src/tools/bestellungen.jsx @@ -282,18 +282,26 @@ function BestellungDetail({ id, toast, onBack }) {
FESTPREIS/STK (€)
- { - if (!!order.bezahlt) return; - const v = e.target.value==='' ? null : parseFloat(e.target.value); - updateItem(item.id, {custom_price:v}); - }} - style={{...S.inp,fontSize:14,padding:'8px 10px', - opacity:!!order.bezahlt?0.5:1, - cursor:!!order.bezahlt?'not-allowed':'text'}}/> +
+ { + if (!!order.bezahlt) return; + const v = e.target.value==='' ? null : parseFloat(e.target.value); + updateItem(item.id, {custom_price:v}); + }} + style={{...S.inp,fontSize:14,padding:'8px 10px',flex:1, + opacity:!!order.bezahlt?0.5:1, + cursor:!!order.bezahlt?'not-allowed':'text'}}/> + {item.custom_price!=null && !order.bezahlt && ( + + )} +