diff --git a/app/views/dossiers/show.pdf.prawn b/app/views/dossiers/show.pdf.prawn index 045c9b8bd..5bc0c9215 100644 --- a/app/views/dossiers/show.pdf.prawn +++ b/app/views/dossiers/show.pdf.prawn @@ -94,6 +94,9 @@ def render_single_champ(pdf, champ) pdf.text " - SIRET: #{champ.to_s}" render_identite_etablissement(pdf, champ.etablissement) if champ.etablissement.present? pdf.text "\n" + when 'Champs::NumberChamp' + value = number_with_delimiter(champ.to_s) + format_in_2_lines(pdf, champ.libelle, value) else value = champ.to_s.empty? ? 'Non communiqué' : champ.to_s format_in_2_lines(pdf, champ.libelle, value) diff --git a/app/views/shared/dossiers/_champ_row.html.haml b/app/views/shared/dossiers/_champ_row.html.haml index cfb9f6be9..25644bb62 100644 --- a/app/views/shared/dossiers/_champ_row.html.haml +++ b/app/views/shared/dossiers/_champ_row.html.haml @@ -34,6 +34,8 @@ = c.to_s - when TypeDeChamp.type_champs.fetch(:datetime) = c.to_s + - when TypeDeChamp.type_champs.fetch(:number) + = number_with_delimiter(c.to_s) - else = format_text_value(c.to_s)