From b023c068ebdffcddea34a71f2499a3256c9913cf Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 2 May 2026 00:41:12 +0200 Subject: [PATCH] Billing rework --- src/app/[locale]/settings/page.tsx | 7 ++++++- src/messages/de.json | 3 ++- src/messages/en.json | 3 ++- src/messages/fr.json | 3 ++- src/messages/it.json | 3 ++- 5 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/app/[locale]/settings/page.tsx b/src/app/[locale]/settings/page.tsx index 4a160c9..7b111ba 100644 --- a/src/app/[locale]/settings/page.tsx +++ b/src/app/[locale]/settings/page.tsx @@ -33,7 +33,12 @@ export default async function SettingsPage() { key: "billing", href: "/settings/billing", title: t("billingTitle"), - description: t("billingDescription"), + // Personal customers (B2C) don't have a VAT number; the + // description shouldn't mention one. Same pattern used in the + // form itself (label/field gating). + description: user.isPersonal + ? t("billingDescriptionPersonal") + : t("billingDescription"), // Owners and platform admins can edit billing. `user` role // can't even view it — billing details aren't useful to them. visible: canMutate(user), diff --git a/src/messages/de.json b/src/messages/de.json index bb53f4b..e7e4bd1 100644 --- a/src/messages/de.json +++ b/src/messages/de.json @@ -390,7 +390,8 @@ "subtitle": "Organisationsweite Konfiguration, die für alle Ihre Tenants gilt.", "billingTitle": "Abrechnung", "billingDescription": "Adresse, MWST-Nummer und Rechnungs-E-Mail für alle Ihre Tenants.", - "nothingForYou": "Für Ihre Rolle gibt es hier noch nichts. Inhaber können Organisationseinstellungen verwalten." + "nothingForYou": "Für Ihre Rolle gibt es hier noch nichts. Inhaber können Organisationseinstellungen verwalten.", + "billingDescriptionPersonal": "Adresse und Rechnungs-E-Mail für alle Ihre Tenants." }, "settingsBilling": { "title": "Abrechnung", diff --git a/src/messages/en.json b/src/messages/en.json index b30b57c..4337f05 100644 --- a/src/messages/en.json +++ b/src/messages/en.json @@ -390,7 +390,8 @@ "subtitle": "Manage org-level configuration that applies to all your tenants.", "billingTitle": "Billing", "billingDescription": "Address, VAT number, and invoice email used for all your tenants.", - "nothingForYou": "There's nothing here for your role yet. Owners can manage org settings." + "nothingForYou": "There's nothing here for your role yet. Owners can manage org settings.", + "billingDescriptionPersonal": "Address and invoice email used for all your tenants." }, "settingsBilling": { "title": "Billing", diff --git a/src/messages/fr.json b/src/messages/fr.json index 07e3ab9..e2c31ec 100644 --- a/src/messages/fr.json +++ b/src/messages/fr.json @@ -390,7 +390,8 @@ "subtitle": "Gérez la configuration au niveau de l'organisation, qui s'applique à tous vos locataires.", "billingTitle": "Facturation", "billingDescription": "Adresse, numéro de TVA et e-mail de facturation utilisés pour tous vos locataires.", - "nothingForYou": "Il n'y a rien ici pour votre rôle pour le moment. Les propriétaires peuvent gérer les paramètres de l'organisation." + "nothingForYou": "Il n'y a rien ici pour votre rôle pour le moment. Les propriétaires peuvent gérer les paramètres de l'organisation.", + "billingDescriptionPersonal": "Adresse et e-mail de facturation utilisés pour tous vos locataires." }, "settingsBilling": { "title": "Facturation", diff --git a/src/messages/it.json b/src/messages/it.json index 0419132..cf91aee 100644 --- a/src/messages/it.json +++ b/src/messages/it.json @@ -390,7 +390,8 @@ "subtitle": "Gestisci la configurazione a livello di organizzazione, valida per tutti i tuoi tenant.", "billingTitle": "Fatturazione", "billingDescription": "Indirizzo, numero di IVA ed e-mail di fatturazione usati per tutti i tuoi tenant.", - "nothingForYou": "Al momento non c'è nulla qui per il tuo ruolo. I proprietari possono gestire le impostazioni dell'organizzazione." + "nothingForYou": "Al momento non c'è nulla qui per il tuo ruolo. I proprietari possono gestire le impostazioni dell'organizzazione.", + "billingDescriptionPersonal": "Indirizzo ed e-mail di fatturazione usati per tutti i tuoi tenant." }, "settingsBilling": { "title": "Fatturazione",