Skip to content

Commit

Permalink
correctif(chorus.export): suite a un refacto, c'etait kc
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin committed Nov 23, 2023
1 parent 7cb6ead commit 4aae6de
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/models/dossier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1226,11 +1226,12 @@ def spreadsheet_columns(with_etablissement: false, types_de_champ:)
columns << ['Entreprise raison sociale', etablissement&.entreprise_raison_sociale]
end

if procedure.chorusable? && procedure.chorus.complete?
# byebug
if procedure.chorusable? && procedure.chorus_configuration.complete?
columns += [
['Domaine Fonctionnel', procedure.chorus_configuration.domaine_fonctionnel.code],
['Référentiel De Programmation', procedure.chorus_configuration.referentiel_de_programmation.code],
['Centre De Coup', procedure.chorus_configuration.centre_de_cout.code]
['Domaine Fonctionnel', procedure.chorus_configuration.domaine_fonctionnel&.fetch("code") { '' }],
['Référentiel De Programmation', procedure.chorus_configuration.referentiel_de_programmation&.fetch("code") { '' }],
['Centre De Coup', procedure.chorus_configuration.centre_de_cout&.fetch("code") { '' }]
]
end
columns += [
Expand Down

0 comments on commit 4aae6de

Please sign in to comment.