refactor: fix credo warnings and format code
- Replace Enum.map/2 |> Enum.join/2 with Enum.map_join/3 for efficiency - Refactor get_existing_form_values to reduce cyclomatic complexity - Replace length/1 with Enum.empty?/1 for better performance - Update gettext translations
This commit is contained in:
parent
97c9ef670b
commit
98dc73ee37
10 changed files with 1180 additions and 159 deletions
|
|
@ -28,6 +28,7 @@ defmodule MvWeb.Helpers.MembershipFeeHelpers do
|
|||
# Use German format: comma as decimal separator, always 2 decimal places
|
||||
# Normalize to 2 decimal places
|
||||
normalized = Decimal.round(amount, 2)
|
||||
|
||||
normalized_str =
|
||||
normalized
|
||||
|> Decimal.to_string(:normal)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue