Geburtsdatum + Geburtsort auch bei Firmenkunden anzeigen/bearbeiten

Bisher wurden die Felder nur bei Privatkunden angezeigt. Jetzt sind sie
unabhängig vom Kundentyp verfügbar, z.B. für Ansprechpartner bei Firmen.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-23 12:05:44 +02:00
parent 2b2e0aa497
commit d1005f9730
2 changed files with 15 additions and 15 deletions
+11 -15
View File
@@ -164,22 +164,18 @@ export default function CustomerForm() {
</>
)}
{customerType !== 'BUSINESS' && (
<>
<Input
label="Geburtsdatum"
type="date"
{...register('birthDate')}
value={watch('birthDate') || ''}
onClear={() => setValue('birthDate', '' as any)}
/>
<Input
label="Geburtsdatum"
type="date"
{...register('birthDate')}
value={watch('birthDate') || ''}
onClear={() => setValue('birthDate', '' as any)}
/>
<Input
label="Geburtsort"
{...register('birthPlace')}
/>
</>
)}
<Input
label="Geburtsort"
{...register('birthPlace')}
/>
</div>
</Card>