diff --git a/shop/components/admin/create-product-dialog.tsx b/shop/components/admin/create-product-dialog.tsx index 55c6692..2b4dc21 100644 --- a/shop/components/admin/create-product-dialog.tsx +++ b/shop/components/admin/create-product-dialog.tsx @@ -55,6 +55,8 @@ const productSchema = z.object({ base_price: z.coerce.number().min(0, 'Preis darf nicht negativ sein'), category_id: z.string().min(1, 'Bitte wählen Sie eine Kategorie'), billing_interval: z.enum(['one_time', 'monthly']).default('monthly'), + show_in_kauf: z.boolean().default(true), + show_in_abo: z.boolean().default(true), modules: z.array(moduleSchema).default([]), }) @@ -72,6 +74,8 @@ export function CreateProductDialog({ children, categories, product }: { childre base_price: product?.base_price || 0, category_id: product?.category_id || '', billing_interval: product?.billing_interval || 'monthly', + show_in_kauf: product ? (product.show_in_kauf ?? true) : true, + show_in_abo: product ? (product.show_in_abo ?? true) : true, modules: product?.modules?.map(m => ({ id: m.id, name: m.name, @@ -217,6 +221,45 @@ export function CreateProductDialog({ children, categories, product }: { childre )} /> +
Noch keine Endkunden angelegt.
+ ++ Einmalige Anschaffungskosten für die Softwarelizenz. Keine monatlichen Mietgebühren. +
++ Laufende monatliche Gebühren. Inklusive aller Updates und flexibler Laufzeit. +
+- Keine Produkte in dieser Kategorie vorhanden. + Keine Produkte in dieser Kategorie im aktuellen Abrechnungsmodell vorhanden.
) : (Noch keine Endkunden angelegt.
- -