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:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user