feat(identite_entreprise): prefer champ.value_json in order to ensure good department
This commit is contained in:
parent
fdff699d51
commit
7182a4e8d0
2 changed files with 2 additions and 2 deletions
|
@ -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: }
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue