Merge pull request #8290 from colinux/champ-commune-pdf
feat(pdf): list department with champ commune
This commit is contained in:
commit
3f34414145
1 changed files with 4 additions and 0 deletions
|
@ -155,6 +155,10 @@ def add_single_champ(pdf, champ)
|
||||||
when 'Champs::NumberChamp'
|
when 'Champs::NumberChamp'
|
||||||
value = champ.to_s.empty? ? 'Non communiqué' : number_with_delimiter(champ.to_s)
|
value = champ.to_s.empty? ? 'Non communiqué' : number_with_delimiter(champ.to_s)
|
||||||
format_in_2_lines(pdf, tdc.libelle, value)
|
format_in_2_lines(pdf, tdc.libelle, value)
|
||||||
|
when 'Champs::CommuneChamp'
|
||||||
|
value = champ.to_s.empty? ? 'Non communiqué' : champ.to_s
|
||||||
|
format_in_2_lines(pdf, tdc.libelle, value)
|
||||||
|
pdf.text "Département : #{champ.departement}" if champ.departement.present?
|
||||||
else
|
else
|
||||||
value = champ.to_s.empty? ? 'Non communiqué' : champ.to_s
|
value = champ.to_s.empty? ? 'Non communiqué' : champ.to_s
|
||||||
format_in_2_lines(pdf, tdc.libelle, value)
|
format_in_2_lines(pdf, tdc.libelle, value)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue