Team-Mails: Links ins Ticketsystem statt Admin-Bereich

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Opus 5.5 committed 2026-10-02 03:52:54 +00:00
1 parent 7c00633db0
commit 95e2807dc7
20 files changed
+132 -28

No files matched your search

+6 -2
View File
@@ -383,6 +383,10 @@ export function customerView(doc) {
}
}
/** Antrag im Ticketsystem: Kunden-Reiter "Gutschriften" mit geoeffnetem Antrag (Team-Mails T10, T11). */
const teamCreditLink = (doc) =>
`${config.womsBaseUrl}/customers/${encodeURIComponent(doc.customerId)}?tab=gutschriften&antrag=${encodeURIComponent(doc.$id)}`
// ---------------------------------------------------------------------------
// Kunde: Antrag stellen, Rueckfrage beantworten
// ---------------------------------------------------------------------------
@@ -457,7 +461,7 @@ export async function createTakeoverRequest({ customer, input, uploads, consentI
email: input.email,
...summary,
nachricht: input.message,
admin_link: `${config.publicBaseUrl}/admin.html?gutschrift=${encodeURIComponent(doc.$id)}`,
admin_link: teamCreditLink(doc),
},
blocks: { nachricht: Boolean(input.message) },
})
@@ -486,7 +490,7 @@ export async function answerQuestion({ customer, doc, message, uploads }) {
antrag_nr: shortRef(doc.$id),
antwort: text || '(ohne Text)',
neue_nachweise: added.map((f) => f.name).join(', '),
admin_link: `${config.publicBaseUrl}/admin.html?gutschrift=${encodeURIComponent(doc.$id)}`,
admin_link: teamCreditLink(doc),
},
blocks: { neue_nachweise: added.length > 0 },
})