diff --git a/shop/components/order-wizard.tsx b/shop/components/order-wizard.tsx index 708303e..2b0c9ca 100644 --- a/shop/components/order-wizard.tsx +++ b/shop/components/order-wizard.tsx @@ -179,7 +179,7 @@ export function OrderWizard({ return 'one_time' }) - // Falls "one_time" (Kauf) gewählt: optionales Datum der letzten CAS-Lizenzierung + // Falls "one_time" (Kauf) gewählt: optionales Datum der letzten CASPOS-Lizenzierung const [lastLicenseDate, setLastLicenseDate] = useState( initialOrder?.order_data?.last_license_date || '' ) @@ -516,7 +516,7 @@ export function OrderWizard({ setEditingIdx(null) setModuleQuantities({}) setDeviceName('') - + const resetSels: Record = {} categories.forEach(cat => { const isVisible = selectedBillingInterval === 'one_time' ? cat.show_in_kauf !== false : cat.show_in_abo !== false diff --git a/shop/components/wizard/license-lookup-panel.tsx b/shop/components/wizard/license-lookup-panel.tsx index 7873a6f..a75178d 100644 --- a/shop/components/wizard/license-lookup-panel.tsx +++ b/shop/components/wizard/license-lookup-panel.tsx @@ -25,12 +25,12 @@ import { lookupLicenseFromLicServer } from '@/lib/actions/licserver-config' // ─── MOCK DATA (until real LicServer API is wired up) ─────────────────────── const MOCK_LICENSES: Record = { - 'CAS-2023-PRO-00123': { - licenseKey: 'CAS-2023-PRO-00123', + '995502-00': { + licenseKey: '995502-00', status: 'active', - product: 'CAS genesisWorld Professional', - edition: 'Professional', - version: '14.1.2', + product: 'CASPOS', + edition: 'GASTRO', + version: '4.8.6', seats: 10, customer: 'Mustermann GmbH', contact: 'Max Mustermann', @@ -224,7 +224,7 @@ export function LicenseLookupPanel({ onLicenseResolved }: LicenseLookupPanelProp {/* ── Input + Search Button ──────────────────────────────── */}

- Geben Sie Ihre bisherige CAS-Lizenznummer ein, + Geben Sie Ihre bisherige CASPOS-Lizenznummer ein, um Lizenzinformationen automatisch abzurufen.

@@ -242,7 +242,7 @@ export function LicenseLookupPanel({ onLicenseResolved }: LicenseLookupPanelProp setNotFound(false) }} onKeyDown={handleKeyDown} - placeholder="z. B. CAS-2023-PRO-00123" + placeholder="z. B. 995502-00" className="pl-9 pr-8 bg-white/5 border-white/10 text-white placeholder:text-slate-500 focus:border-violet-500/60 focus:ring-violet-500/20 rounded-xl text-sm h-10" /> @@ -278,9 +278,9 @@ export function LicenseLookupPanel({ onLicenseResolved }: LicenseLookupPanelProp Demo:  setLicenseKey('CAS-2023-PRO-00123')} + onClick={() => setLicenseKey('995502-00')} > - CAS-2023-PRO-00123 + 995502-00 {' · '} handleBillingIntervalChange('one_time')} - className={`relative p-6 rounded-2xl border-2 cursor-pointer transition-all duration-300 flex flex-col justify-between h-48 hover:shadow-[0_0_20px_rgba(255,255,255,0.05)] ${ - selectedBillingInterval === 'one_time' + className={`relative p-6 rounded-2xl border-2 cursor-pointer transition-all duration-300 flex flex-col justify-between h-48 hover:shadow-[0_0_20px_rgba(255,255,255,0.05)] ${selectedBillingInterval === 'one_time' ? 'border-primary bg-primary/10 shadow-[0_0_25px_rgba(59,130,246,0.2)]' : 'border-white/5 bg-white/5 hover:border-white/20' - }`} + }`} >
@@ -71,11 +70,10 @@ export function StepBilling({ {/* Option 2: Abo */}
handleBillingIntervalChange('monthly')} - className={`relative p-6 rounded-2xl border-2 cursor-pointer transition-all duration-300 flex flex-col justify-between h-48 hover:shadow-[0_0_20px_rgba(255,255,255,0.05)] ${ - selectedBillingInterval === 'monthly' + className={`relative p-6 rounded-2xl border-2 cursor-pointer transition-all duration-300 flex flex-col justify-between h-48 hover:shadow-[0_0_20px_rgba(255,255,255,0.05)] ${selectedBillingInterval === 'monthly' ? 'border-primary bg-primary/10 shadow-[0_0_25px_rgba(59,130,246,0.2)]' : 'border-white/5 bg-white/5 hover:border-white/20' - }`} + }`} >
@@ -99,7 +97,7 @@ export function StepBilling({