Fix #136
This commit is contained in:
@@ -217,6 +217,7 @@ export const diffTranslations: Record<
|
|||||||
web: { label: "Webseite" },
|
web: { label: "Webseite" },
|
||||||
email: { label: "E-Mail" },
|
email: { label: "E-Mail" },
|
||||||
tel: { label: "Telefon" },
|
tel: { label: "Telefon" },
|
||||||
|
mobileTel: { label: "Mobilnummer" },
|
||||||
ustid: { label: "USt-ID" },
|
ustid: { label: "USt-ID" },
|
||||||
role: { label: "Rolle" },
|
role: { label: "Rolle" },
|
||||||
phoneHome: { label: "Festnetz" },
|
phoneHome: { label: "Festnetz" },
|
||||||
|
|||||||
@@ -396,6 +396,12 @@ export const useDataStore = defineStore('data', () => {
|
|||||||
inputType: "text",
|
inputType: "text",
|
||||||
inputColumn: "Kontaktdaten"
|
inputColumn: "Kontaktdaten"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
key: "infoData.mobileTel",
|
||||||
|
label: "Mobilnummer",
|
||||||
|
inputType: "text",
|
||||||
|
inputColumn: "Kontaktdaten"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
key: "infoData.email",
|
key: "infoData.email",
|
||||||
label: "E-Mail",
|
label: "E-Mail",
|
||||||
|
|||||||
@@ -110,12 +110,15 @@ export default function CustomerDetailScreen() {
|
|||||||
|
|
||||||
const rows = useMemo(() => {
|
const rows = useMemo(() => {
|
||||||
if (!customer) return [];
|
if (!customer) return [];
|
||||||
|
const infoData = customer.infoData || {};
|
||||||
|
|
||||||
return [
|
return [
|
||||||
{ label: 'Name', value: String(customer.name || '-') },
|
{ label: 'Name', value: String(customer.name || '-') },
|
||||||
{ label: 'Kundennummer', value: String(customer.customerNumber || '-') },
|
{ label: 'Kundennummer', value: String(customer.customerNumber || '-') },
|
||||||
{ label: 'Typ', value: String(customer.type || '-') },
|
{ label: 'Typ', value: String(customer.type || '-') },
|
||||||
{ label: 'E-Mail', value: String(customer.email || '-') },
|
{ label: 'E-Mail', value: String(infoData.email || customer.email || '-') },
|
||||||
{ label: 'Telefon', value: String(customer.phone || '-') },
|
{ label: 'Telefon', value: String(infoData.tel || customer.phone || '-') },
|
||||||
|
{ label: 'Mobilnummer', value: String(infoData.mobileTel || '-') },
|
||||||
{ label: 'Erstellt', value: formatDateTime(customer.createdAt || customer.created_at) },
|
{ label: 'Erstellt', value: formatDateTime(customer.createdAt || customer.created_at) },
|
||||||
{ label: 'Aktualisiert', value: formatDateTime(customer.updatedAt || customer.updated_at) },
|
{ label: 'Aktualisiert', value: formatDateTime(customer.updatedAt || customer.updated_at) },
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -74,6 +74,12 @@ export type Customer = {
|
|||||||
customerNumber?: string | null;
|
customerNumber?: string | null;
|
||||||
notes?: string | null;
|
notes?: string | null;
|
||||||
archived?: boolean;
|
archived?: boolean;
|
||||||
|
infoData?: {
|
||||||
|
email?: string | null;
|
||||||
|
tel?: string | null;
|
||||||
|
mobileTel?: string | null;
|
||||||
|
[key: string]: unknown;
|
||||||
|
} | null;
|
||||||
[key: string]: unknown;
|
[key: string]: unknown;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user