Member Fee Type in overview and exports, fix column visibility from URL #442
1 changed files with 8 additions and 0 deletions
|
|
@ -433,6 +433,14 @@ defmodule Mv.Membership.MemberExport do
|
||||||
expand_field_with_computed(f, member_fields, computed_fields)
|
expand_field_with_computed(f, member_fields, computed_fields)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
# If fee type is visible but start_date was not in the list, it won't be in db_with_insert
|
||||||
|
db_with_insert =
|
||||||
|
if "membership_fee_type" in member_fields and "membership_fee_type" not in db_with_insert do
|
||||||
|
db_with_insert ++ ["membership_fee_type"]
|
||||||
|
else
|
||||||
|
db_with_insert
|
||||||
|
end
|
||||||
|
|
||||||
remaining = Enum.reject(computed_fields, &(&1 in db_with_insert))
|
remaining = Enum.reject(computed_fields, &(&1 in db_with_insert))
|
||||||
db_with_insert ++ remaining
|
db_with_insert ++ remaining
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue