Cockpit: "Ausweis fehlt" nur noch bei Mobilfunk
Bei Festnetz/Internet-Verträgen (DSL, FIBER, CABLE) verlangt der Anbieter beim Auftrag keinen Ausweis – die Cockpit-Warnung "Ausweis fehlt" war dort nur Rauschen. Mobile bleibt drin, weil für SIM-Kartenausgabe echte Identitätsfeststellung Pflicht ist. Die "Ausweis läuft ab"-Warnung bleibt unverändert: sie greift nur, wenn ein Ausweis verknüpft ist, und ist damit für alle Vertragstypen sinnvoll (wenn schon ein Ausweis dranhängt, will der User auch über den Ablauf informiert werden). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -494,8 +494,11 @@ export async function getCockpitData(opts?: { customerIds?: number[] }): Promise
|
||||
summary.byCategory.missingData++;
|
||||
}
|
||||
|
||||
// 7b. KEIN AUSWEIS (nur für Telekommunikationsprodukte relevant)
|
||||
const requiresIdentityDocument = ['DSL', 'FIBER', 'CABLE', 'MOBILE'].includes(contract.type);
|
||||
// 7b. KEIN AUSWEIS – nur Mobilfunk. Bei Festnetz/Internet (DSL, FIBER,
|
||||
// CABLE) verlangt der Anbieter beim Auftrag keinen Ausweis, die
|
||||
// Warnung ist da nur Rauschen. Mobile bleibt drin, weil dort echte
|
||||
// Identitätsfeststellung Pflicht ist.
|
||||
const requiresIdentityDocument = contract.type === 'MOBILE';
|
||||
if (requiresIdentityDocument && !contract.identityDocumentId) {
|
||||
issues.push({
|
||||
type: 'missing_identity_document',
|
||||
|
||||
Reference in New Issue
Block a user