diff --git a/frontend/src/tools/bestellungen.jsx b/frontend/src/tools/bestellungen.jsx index 1ed7542..19671c9 100644 --- a/frontend/src/tools/bestellungen.jsx +++ b/frontend/src/tools/bestellungen.jsx @@ -583,6 +583,46 @@ export default function Bestellungen({ toast, mobile }) { )} + {/* Positionen */} + {order.items && order.items.length > 0 && ( +
+ {order.items.map(item => { + const f=item.qty_fertig||0, a=item.qty_in_arbeit||0, w=item.qty_warteliste||0; + const itemStatus = f>=item.stueckzahl&&item.stueckzahl>0?'fertig':f>0||a>0?'in_arbeit':'warteliste'; + const sc = STATUS[itemStatus]?.color || '#ffe66d'; + return ( +
+ {/* Status dot */} + + {/* Name */} + {item.calc_name} + {/* Stückzahl */} + + ×{item.stueckzahl} + + {/* Status Zähler kompakt */} +
+ {w>0&&{w}W} + {a>0&&{a}A} + {f>0&&{f}F} +
+ {/* Preis */} + {item.custom_price!=null && ( + + {(item.custom_price*item.stueckzahl).toFixed(2)}€ + + )} +
+ ); + })} +
+ )} +