Fix #136
This commit is contained in:
@@ -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) },
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user