added contract history

This commit is contained in:
2026-02-08 19:24:37 +01:00
parent 746706ef01
commit e0fc26795e
33 changed files with 3200 additions and 743 deletions
+1 -1
View File
@@ -467,7 +467,7 @@ async function createFollowUpContract(previousContractId) {
// Explicitly NOT copying: providerName, tariffName, portalUsername, portalPassword, price fields
cancellationPeriodId: previousContract.cancellationPeriodId ?? undefined,
contractDurationId: previousContract.contractDurationId ?? undefined,
notes: `Folgevertrag zu ${previousContract.contractNumber}`,
// notes nicht mehr automatisch setzen - wird jetzt über Historie-Eintrag dokumentiert
};
// Copy type-specific details (without credentials)
if (previousContract.energyDetails) {
File diff suppressed because one or more lines are too long