Abo-Status eines Kunden fuer alle Mitarbeiter im Team-Eingang

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Opus 5.5 committed 2026-10-02 02:52:38 +00:00
1 parent 0fdd13246c
commit 45203284ee
3 files changed
+45 -1

No files matched your search

+1 -1
View File
@@ -347,7 +347,7 @@ function withHistory(doc, entry) {
return json
}
const serviceStartOf = (sub) => sub?.trialEnd || sub?.startedAt || null
export const serviceStartOf = (sub) => sub?.trialEnd || sub?.startedAt || null
const isActiveSub = (sub) => Boolean(sub && ACTIVE_STATUSES.has(sub.status))
// Produkt des Abos: Altbestand ohne productKey und unbekannte Schluessel gelten als Wartungs-Abo
const productKeyOf = (sub) => (PRODUCT_KEYS.includes(sub?.productKey) ? sub.productKey : 'wartung')