Mobilfunk: Feld "Mobilfunknetz" unter Anbieter & Tarif
Neues Dropdown "Mobilfunknetz" in der Anbieter-&-Tarif-Karte, nur sichtbar bei Vertragstyp Mobilfunk. Optionen: Bitte auswählen (leer), Telekom, Vodafone, Telefónica. Neues Feld MobileContractDetails.mobileNetwork (String nullable, speichert TELEKOM/VODAFONE/TELEFONICA) + idempotente Migration (ADD COLUMN IF NOT EXISTS). String statt Enum, damit weitere Netze ohne Migration ergänzbar sind. Anzeige in der Vertragsansicht mit lesbarem Netz-Namen. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -3077,6 +3077,12 @@ export default function ContractDetail() {
|
||||
{c.mobileDetails && (
|
||||
<Card className="mb-6" title="Mobilfunk-Details">
|
||||
<dl className="grid grid-cols-2 md:grid-cols-4 gap-4">
|
||||
{c.mobileDetails.mobileNetwork && (
|
||||
<div>
|
||||
<dt className="text-sm text-gray-500">Mobilfunknetz</dt>
|
||||
<dd>{({ TELEKOM: 'Telekom', VODAFONE: 'Vodafone', TELEFONICA: 'Telefónica' } as Record<string, string>)[c.mobileDetails.mobileNetwork] || c.mobileDetails.mobileNetwork}</dd>
|
||||
</div>
|
||||
)}
|
||||
{c.mobileDetails.dataVolume && (
|
||||
<div>
|
||||
<dt className="text-sm text-gray-500">Datenvolumen</dt>
|
||||
|
||||
Reference in New Issue
Block a user