Merge pull request #9745 from mfo/US/chorus-fix

correctif(chorus.export): suite a un refacto, c'etait kc
This commit is contained in:
mfo 2023-11-23 09:30:20 +01:00 committed by GitHub
commit c717691a6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1226,11 +1226,11 @@ class Dossier < ApplicationRecord
columns << ['Entreprise raison sociale', etablissement&.entreprise_raison_sociale] columns << ['Entreprise raison sociale', etablissement&.entreprise_raison_sociale]
end end
if procedure.chorusable? && procedure.chorus.complete? if procedure.chorusable? && procedure.chorus_configuration.complete?
columns += [ columns += [
['Domaine Fonctionnel', procedure.chorus_configuration.domaine_fonctionnel.code], ['Domaine Fonctionnel', procedure.chorus_configuration.domaine_fonctionnel&.fetch("code") { '' }],
['Référentiel De Programmation', procedure.chorus_configuration.referentiel_de_programmation.code], ['Référentiel De Programmation', procedure.chorus_configuration.referentiel_de_programmation&.fetch("code") { '' }],
['Centre De Coup', procedure.chorus_configuration.centre_de_cout.code] ['Centre De Coup', procedure.chorus_configuration.centre_de_cout&.fetch("code") { '' }]
] ]
end end
columns += [ columns += [