diff --git a/backend/src/utils/diffTranslations.ts b/backend/src/utils/diffTranslations.ts index 5d61d0e..a73fdcd 100644 --- a/backend/src/utils/diffTranslations.ts +++ b/backend/src/utils/diffTranslations.ts @@ -217,6 +217,7 @@ export const diffTranslations: Record< web: { label: "Webseite" }, email: { label: "E-Mail" }, tel: { label: "Telefon" }, + mobileTel: { label: "Mobilnummer" }, ustid: { label: "USt-ID" }, role: { label: "Rolle" }, phoneHome: { label: "Festnetz" }, diff --git a/frontend/stores/data.js b/frontend/stores/data.js index 171011b..4b32e3d 100644 --- a/frontend/stores/data.js +++ b/frontend/stores/data.js @@ -396,6 +396,12 @@ export const useDataStore = defineStore('data', () => { inputType: "text", inputColumn: "Kontaktdaten" }, + { + key: "infoData.mobileTel", + label: "Mobilnummer", + inputType: "text", + inputColumn: "Kontaktdaten" + }, { key: "infoData.email", label: "E-Mail", diff --git a/mobile/app/more/customer/[id].tsx b/mobile/app/more/customer/[id].tsx index 58a5353..fc784a4 100644 --- a/mobile/app/more/customer/[id].tsx +++ b/mobile/app/more/customer/[id].tsx @@ -110,12 +110,15 @@ export default function CustomerDetailScreen() { const rows = useMemo(() => { if (!customer) return []; + const infoData = customer.infoData || {}; + return [ { label: 'Name', value: String(customer.name || '-') }, { label: 'Kundennummer', value: String(customer.customerNumber || '-') }, { label: 'Typ', value: String(customer.type || '-') }, - { label: 'E-Mail', value: String(customer.email || '-') }, - { label: 'Telefon', value: String(customer.phone || '-') }, + { label: 'E-Mail', value: String(infoData.email || customer.email || '-') }, + { label: 'Telefon', value: String(infoData.tel || customer.phone || '-') }, + { label: 'Mobilnummer', value: String(infoData.mobileTel || '-') }, { label: 'Erstellt', value: formatDateTime(customer.createdAt || customer.created_at) }, { label: 'Aktualisiert', value: formatDateTime(customer.updatedAt || customer.updated_at) }, ]; diff --git a/mobile/src/lib/api.ts b/mobile/src/lib/api.ts index e61aa73..15272a7 100644 --- a/mobile/src/lib/api.ts +++ b/mobile/src/lib/api.ts @@ -74,6 +74,12 @@ export type Customer = { customerNumber?: string | null; notes?: string | null; archived?: boolean; + infoData?: { + email?: string | null; + tel?: string | null; + mobileTel?: string | null; + [key: string]: unknown; + } | null; [key: string]: unknown; };