salutation CRUD and controller

This commit is contained in:
Julian Krauser 2025-01-25 11:58:10 +01:00
parent b55d0554e4
commit 1ab4d93d2b
10 changed files with 288 additions and 3 deletions

View file

@ -1,6 +1,7 @@
import { member } from "../../../../entity/club/member/member";
import { MemberStatisticsViewModel, MemberViewModel } from "../../../../viewmodel/admin/club/member/member.models";
import { memberView } from "../../../../views/memberView";
import SalutationFactory from "../../settings/salutation";
import CommunicationFactory from "./communication";
import MembershipFactory from "./membership";
@ -13,7 +14,7 @@ export default abstract class MemberFactory {
public static mapToSingle(record: member): MemberViewModel {
return {
id: record?.id,
salutation: record?.salutation,
salutation: SalutationFactory.mapToSingle(record?.salutation),
firstname: record?.firstname,
lastname: record?.lastname,
nameaffix: record?.nameaffix,