fix export to word

This commit is contained in:
Dobromir Popov
2024-05-02 03:46:04 +03:00
parent 1d24349dad
commit 9501563924

View File

@ -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 (