Add groupe_instructeur_label to export v2

This commit is contained in:
simon lehericey 2019-09-18 21:09:52 +02:00
parent f577484aa2
commit a2f82ab8be
2 changed files with 24 additions and 5 deletions

View file

@ -447,7 +447,7 @@ class Dossier < ApplicationRecord
end
def spreadsheet_columns
[
columns = [
['ID', id.to_s],
['Email', user.email],
['Civilité', individual&.gender],
@ -462,7 +462,13 @@ class Dossier < ApplicationRecord
['Traité le', :processed_at],
['Motivation de la décision', :motivation],
['Instructeurs', followers_instructeurs.map(&:email).join(' ')]
] + champs_for_export + annotations_for_export
]
if procedure.routee?
columns << ['Groupe instructeur', groupe_instructeur.label]
end
columns + champs_for_export + annotations_for_export
end
def champs_for_export