diff --git a/src/command/club/protocol/protocolPresenceCommand.ts b/src/command/club/protocol/protocolPresenceCommand.ts index 134aeac..76c004a 100644 --- a/src/command/club/protocol/protocolPresenceCommand.ts +++ b/src/command/club/protocol/protocolPresenceCommand.ts @@ -6,5 +6,4 @@ export interface SynchronizeProtocolPresenceCommand { export interface ProtocolPresenceCommand { memberId: number; absent: boolean; - excused: boolean; } diff --git a/src/command/club/protocol/protocolPresenceCommandHandler.ts b/src/command/club/protocol/protocolPresenceCommandHandler.ts index 8d48fe6..abdb82b 100644 --- a/src/command/club/protocol/protocolPresenceCommandHandler.ts +++ b/src/command/club/protocol/protocolPresenceCommandHandler.ts @@ -74,7 +74,6 @@ export default abstract class ProtocolPresenceCommandHandler { .update(protocolPresence) .set({ absent: member.absent, - excused: member.excused, }) .where("memberId = :memberId", { memberId: member.memberId }) .andWhere("protocolId = :protocolId", { protocolId }) diff --git a/src/controller/admin/club/protocolController.ts b/src/controller/admin/club/protocolController.ts index 868715f..bba8aa0 100644 --- a/src/controller/admin/club/protocolController.ts +++ b/src/controller/admin/club/protocolController.ts @@ -260,9 +260,7 @@ export async function createProtocolPrintoutById(req: Request, res: Response): P agenda, decisions, presence: presence.filter((p) => !p.absent).map((p) => p.member), - absent: presence.filter((p) => p.absent).map((p) => ({ ...p.member, excused: p.excused })), - excused_absent: presence.filter((p) => p.absent && p.excused).map((p) => p.member), - unexcused_absent: presence.filter((p) => p.absent && !p.excused).map((p) => p.member), + absent: presence.filter((p) => p.absent).map((p) => p.member), votings, }, }); @@ -391,7 +389,6 @@ export async function synchronizeProtocolPrecenseById(req: Request, res: Respons members: presence.map((p) => ({ memberId: p.memberId, absent: p.absent, - excused: p.excused, })), protocolId, }; diff --git a/src/templates/protocol.body.template.html b/src/templates/protocol.body.template.html index 5a263ff..c37fa75 100644 --- a/src/templates/protocol.body.template.html +++ b/src/templates/protocol.body.template.html @@ -14,19 +14,9 @@

Anwesenheit ({{presence.length}})

-

- {{#each presence}}{{this.firstname}} {{this.lastname}}{{#unless @last}}, {{/unless}}{{/each}}{{#unless - presence.length}}---{{/unless}} -

+

{{#each presence}} {{this.firstname}} {{this.lastname}}{{#unless @last}}, {{/unless}} {{/each}}

Abwesenheit ({{absent.length}})

-

- entschuldigt: {{#each excused_absent}}{{this.firstname}} {{this.lastname}}{{#unless @last}}, - {{/unless}}{{/each}}{{#unless excused_absent.length}}---{{/unless}} -

-

- unentschuldigt: {{#each unexcused_absent}}{{this.firstname}} {{this.lastname}}{{#unless @last}}, - {{/unless}}{{/each}}{{#unless unexcused_absent.length}}---{{/unless}} -

+

{{#each absent}} {{this.firstname}} {{this.lastname}}{{#unless @last}}, {{/unless}} {{/each}}


Agenda

{{#each agenda}}