From 95015639248a7742c052598f17926f031ba8a6e0 Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Thu, 2 May 2024 03:46:04 +0300 Subject: [PATCH] fix export to word --- server.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index 616ec1d..cb0bdf4 100644 --- a/server.js +++ b/server.js @@ -336,8 +336,11 @@ nextApp placeOfEvent: shift.cartEvent.location.name, time: time, //bold the text after - in the notes - notes: shift.notes.substring(0, shift.notes.indexOf("-") + 1), - notes_bold: shift.notes.substring(shift.notes.indexOf("-") + 1), + //notes: shift.notes.substring(0, shift.notes.indexOf("-") + 1), + //notes_bold: shift.notes.substring(shift.notes.indexOf("-") + 1), + notes: shift.assignments.some(a => a.isWithTransport) ? "Транспорт: " : "", + notes_bold: shift.assignments.filter(a => a.isWithTransport).map(a => common.getInitials(a.publisher.firstName + " " + a.publisher.lastName)).join(", "), + names: shift.assignments .map((assignment) => { return (