feat(export): include Fee Type and groups in PDF export

MemberExport allowlist and insert_fee_type; Build load/sort/cell_value;
MemberPdfExportController allow membership_fee_type and groups.
This commit is contained in:
Moritz 2026-02-24 00:20:20 +01:00
parent 8db24405fa
commit e86c78a0dc
Signed by: moritz
GPG key ID: 1020A035E5DD0824
3 changed files with 101 additions and 34 deletions

View file

@ -20,7 +20,8 @@ defmodule MvWeb.MemberPdfExportController do
@invalid_json_message "invalid JSON"
@export_failed_message "Failed to generate PDF export"
@allowed_member_field_strings Mv.Constants.member_fields() |> Enum.map(&Atom.to_string/1)
@allowed_member_field_strings (Mv.Constants.member_fields() |> Enum.map(&Atom.to_string/1)) ++
["membership_fee_type", "groups"]
def export(conn, %{"payload" => payload}) when is_binary(payload) do
actor = current_actor(conn)