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 72b8cce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/models/dossier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1226,11 +1226,11 @@ def spreadsheet_columns(with_etablissement: false, types_de_champ:)
columns << ['Entreprise raison sociale', etablissement&.entreprise_raison_sociale]
end

if procedure.chorusable? && procedure.chorus.complete?
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 72b8cce

Please sign in to comment.