diff --git a/shop/components/order-wizard.tsx b/shop/components/order-wizard.tsx index d0491be..918fb23 100644 --- a/shop/components/order-wizard.tsx +++ b/shop/components/order-wizard.tsx @@ -166,6 +166,7 @@ export function OrderWizard({ return '' }) const [editingIdx, setEditingIdx] = useState(null) + const [orderNotes, setOrderNotes] = useState('') const [toast, setToast] = useState<{ message: string; type: 'error' | 'success' } | null>(null) useEffect(() => { @@ -687,6 +688,7 @@ export function OrderWizard({ endCustomerId: selectedEndCustomerId, endCustomer: selectedEndCustomer, lastLicenseDate: lastLicenseDate || null, + notes: orderNotes || null, }) }) @@ -859,40 +861,42 @@ export function OrderWizard({ {/* CENTER: Sticky stepper + scrollable categories */} -
+
{/* Sticky stepper header — only covers center column */} -
+

Schritt 3 von 4 — Software konfigurieren

- {/* Upgrade-Modus Hinweis-Banner */} - {upgradeMode && lockedDeviceId && ( -
- -
-

Upgrade-Modus: {lockedDeviceId}

-

Bereits lizenzierte Module sind ausgegraut und können nicht doppelt gebucht werden.

+ {/* Scrollable category content area */} +
+ {/* Upgrade-Modus Hinweis-Banner */} + {upgradeMode && lockedDeviceId && ( +
+ +
+

Upgrade-Modus: {lockedDeviceId}

+

Bereits lizenzierte Module sind ausgegraut und können nicht doppelt gebucht werden.

+
-
- )} + )} - {/* Scrollable category content */} - + +
{/* RIGHT: Summary sidebar (sticky) */} @@ -961,6 +965,8 @@ export function OrderWizard({ initialOrder={initialOrder} prevStep={prevStep} linkedFeeProducts={linkedFeeProducts} + orderNotes={orderNotes} + setOrderNotes={setOrderNotes} /> )} diff --git a/shop/components/wizard/step-summary.tsx b/shop/components/wizard/step-summary.tsx index f28aa22..03b379f 100644 --- a/shop/components/wizard/step-summary.tsx +++ b/shop/components/wizard/step-summary.tsx @@ -29,6 +29,8 @@ interface StepSummaryProps { initialOrder: any prevStep: () => void linkedFeeProducts?: Product[] + orderNotes: string + setOrderNotes: (notes: string) => void } function CategoryIcon({ icon, className }: { icon?: string | null; className?: string }) { @@ -58,6 +60,8 @@ export function StepSummary({ initialOrder, prevStep, linkedFeeProducts = [], + orderNotes, + setOrderNotes, }: StepSummaryProps) { return ( @@ -263,6 +267,21 @@ export function StepSummary({
)} + {/* Anmerkungen / Notizfeld */} +
+ +