Fix: Zeilenumbruch-Escape in schein.ts
Build and Deploy / version (push) Successful in 1s
Build and Deploy / build (push) Successful in 9s
Build and Deploy / deploy (push) Successful in 2s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Fidelis Huber
2026-10-09 20:18:25 +02:00
co-authored by Claude Sonnet 5.5
parent 98df3ec80a
commit f594af20f5
+1 -2
View File
@@ -38,8 +38,7 @@ const bestellTitel = (kopf: Pick<ScheinKopf, 'titel' | 'auftraggeber'>) => kopf.
export async function bestellscheinFuerKopf(kopf: ScheinKopf): Promise<Projekt> {
const baustelle = kopf.auftraggeber.trim() && kopf.titel.trim() ? `Baustelle: ${kopf.titel.trim()}` : '';
const notiz = [baustelle, kopf.notiz.trim()].filter(Boolean).join('
');
const notiz = [baustelle, kopf.notiz.trim()].filter(Boolean).join('\n');
return api.projekte.create({ ...kopf, titel: bestellTitel(kopf), notiz, typ: 'Bestell' });
}