feat(identite_entreprise): prefer champ.value_json in order to ensure good department

This commit is contained in:
mfo 2024-08-22 09:16:46 +02:00
parent fdff699d51
commit 7182a4e8d0
No known key found for this signature in database
GPG key ID: 7CE3E1F5B794A8EC
2 changed files with 2 additions and 2 deletions

View file

@ -1,2 +1,2 @@
- if champ.etablissement.present?
= render partial: "shared/dossiers/identite_entreprise", locals: { etablissement: champ.etablissement, profile: profile }
= render partial: "shared/dossiers/identite_entreprise", locals: { etablissement: champ.etablissement, profile: profile, champ: }

View file

@ -73,7 +73,7 @@
- c.with_value do
%p= etablissement.entreprise.numero_tva_intracommunautaire
= render partial: "shared/dossiers/normalized_address", locals: { address: AddressProxy.new(etablissement)}
= render partial: "shared/dossiers/normalized_address", locals: { address: AddressProxy.new(defined?(champ) ? champ : etablissement)}
= render Dossiers::RowShowComponent.new(label: "Capital social") do |c|
- c.with_value do