Fix: Zeilenumbruch-Escape in schein.ts
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
98df3ec80a
commit
f594af20f5
@@ -38,8 +38,7 @@ const bestellTitel = (kopf: Pick<ScheinKopf, 'titel' | 'auftraggeber'>) => kopf.
|
|||||||
|
|
||||||
export async function bestellscheinFuerKopf(kopf: ScheinKopf): Promise<Projekt> {
|
export async function bestellscheinFuerKopf(kopf: ScheinKopf): Promise<Projekt> {
|
||||||
const baustelle = kopf.auftraggeber.trim() && kopf.titel.trim() ? `Baustelle: ${kopf.titel.trim()}` : '';
|
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' });
|
return api.projekte.create({ ...kopf, titel: bestellTitel(kopf), notiz, typ: 'Bestell' });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user