duffyduck
|
77602bb4ac
|
contracts: VVL (Vertragsverlängerung) als Split-Button neben Folgevertrag
VVL = Vertragsverlängerung beim selben Anbieter (vs. Folgevertrag = i.d.R.
Anbieterwechsel).
Im Gegensatz zu createFollowUpContract wird ALLES kopiert:
- Provider, Tarif, Portal-Username/Passwort (verschlüsselt)
- Preise (basePrice/unitPrice/bonus etc.)
- Notes, Commission, Internet-Zugangsdaten, SIP-Daten, SIM-PINs
- ContractDocuments (1:1, gleiche Datei-Referenz)
- Detail-Tabellen (Energy/Internet/Mobile/TV/CarInsurance) komplett
Berechnet:
- newStartDate = oldStartDate + Vertragslaufzeit (Monate aus
ContractDuration.code/description geparsed: "24M" / "24 Monate" / "2J")
- newEndDate = newStartDate + Laufzeit
- status = DRAFT (User bestätigt manuell)
NICHT kopiert:
- documentType "Auftragsformular" (das wird neu unterschrieben)
- cancellation*-Felder (alter Cancel-Flow nicht relevant)
Frontend:
- Split-Button: Hauptaktion "Folgevertrag anlegen" + ChevronDown-Pfeil
- Dropdown: "VVL anlegen" mit Bestätigungs-Modal
- Modal zeigt Vorhersage des neuen Startdatums (alter Start +
Vertragslaufzeit als Hinweis)
History-Einträge wie bei Folgevertrag, mit eigenem VVL-Wording.
Doppel-Schutz: maximal 1 Folge-/VVL-Vertrag pro Vorgänger.
Live-verifiziert:
- Contract #17 (FIBER, 2026-05-01, 24M) → VVL mit Start 2028-05-01 ✓
- Provider/Tarif/Preise/Credentials 1:1 übernommen
- 2 Dokumente kopiert (außer Auftragsformular)
- History-Einträge in beiden Verträgen vorhanden
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-03 09:12:39 +02:00 |
|
duffyduck
|
0d58b79836
|
Typspezifische Zusatzinfos in Vertragslisten
Jede Vertragszeile zeigt jetzt eine kontextspezifische Zusatzinfo an:
- Strom/Gas: "Lieferadresse: Musterstr. 12, 12345 Berlin"
- DSL/Glasfaser/Kabel: "Anschlussadresse: ..."
- Mobilfunk: "Rufnummer: 0171 1234567" (Hauptkarte bevorzugt)
- KFZ: "Kennzeichen: HB-AB 123"
Sichtbar in:
- Admin-Vertragsliste (/contracts)
- Portal-Vertragsliste (Baumansicht)
- Kunden-Detail → Verträge-Tab
Backend: getAllContracts + getContractTreeForCustomer liefern
mobileDetails (mit simCards), carInsuranceDetails und address mit.
Frontend: Neuer Helper utils/contractInfo.ts mit getContractTypeInfo,
aus dem sowohl Label als auch Wert pro Typ kommt.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
2026-04-23 10:19:04 +02:00 |
|
duffyduck
|
0e75e6c8e5
|
added place to telecommunication, added contract documents, added invoice to other contracts
|
2026-03-25 16:55:48 +01:00 |
|
duffyduck
|
fd55742c57
|
complete new audit system
|
2026-03-21 18:23:54 +01:00 |
|
duffyduck
|
38b3b7da73
|
Datenschutz vollmacht fixed, two time counter added
|
2026-03-21 16:42:31 +01:00 |
|
duffyduck
|
e0fc26795e
|
added contract history
|
2026-02-08 19:24:37 +01:00 |
|
duffyduck
|
4f588015a4
|
contractnumber provider added, old provider number field only if no previous contact exist
|
2026-02-08 14:34:56 +01:00 |
|
duffyduck
|
ad2b8ea5b6
|
added invoices and status in cockpit, created info button for contract status types
|
2026-02-08 01:18:12 +01:00 |
|
duffyduck
|
f21eb20715
|
seperate delivery and billig adresses in contract added
|
2026-02-04 08:48:25 +01:00 |
|
duffyduck
|
d8ced5cb24
|
added new view in contracts customer and contracts
|
2026-02-04 00:52:04 +01:00 |
|
Stefan Hacker
|
e209e9bbca
|
first commit
|
2026-01-29 01:16:54 +01:00 |
|