fix: address build + aff req admin bug
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 10m0s
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 10m0s
This commit is contained in:
parent
d740ad255f
commit
18ea38f85a
@ -17,14 +17,23 @@ function formatAdresse(data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function reconstruireAdresse(infos) {
|
function reconstruireAdresse(infos) {
|
||||||
|
console.log(infos);
|
||||||
let adresseReconstruite = "";
|
let adresseReconstruite = "";
|
||||||
adresseReconstruite += infos.numero_voie + ' ' + formatAdresse(infos.type_voie) + ' ';
|
|
||||||
|
|
||||||
|
if(infos.numero_voie === null){
|
||||||
|
if (infos.complement_adresse) {
|
||||||
|
adresseReconstruite += formatAdresse(infos.complement_adresse) + ', ';
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
adresseReconstruite += infos.numero_voie + ' ';
|
||||||
|
}
|
||||||
|
|
||||||
|
adresseReconstruite += formatAdresse(infos.type_voie) + ' ';
|
||||||
adresseReconstruite += formatAdresse(infos.libelle_voie) + ', ';
|
adresseReconstruite += formatAdresse(infos.libelle_voie) + ', ';
|
||||||
adresseReconstruite += infos.code_postal + ' ' + infos.libelle_commune + ', ';
|
adresseReconstruite += infos.code_postal + ' ' + infos.libelle_commune + ', ';
|
||||||
|
|
||||||
if (infos.complement_adresse) {
|
if (infos.complement_adresse && infos.numero_voie !== null) {
|
||||||
adresseReconstruite += infos.complement_adresse.toLowerCase() + ', ';
|
adresseReconstruite += formatAdresse(infos.complement_adresse) + ', ';
|
||||||
}
|
}
|
||||||
if (infos.code_cedex && infos.libelle_cedex) {
|
if (infos.code_cedex && infos.libelle_cedex) {
|
||||||
adresseReconstruite += 'Cedex ' + infos.code_cedex + ' - ' + infos.libelle_cedex;
|
adresseReconstruite += 'Cedex ' + infos.code_cedex + ' - ' + infos.libelle_cedex;
|
||||||
@ -400,4 +409,4 @@ export function DemandeAffOk() {
|
|||||||
espace FFSAF</p>
|
espace FFSAF</p>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -70,6 +70,7 @@ function Content({data, refresh}) {
|
|||||||
formData.append('siret', event.target.siret.value);
|
formData.append('siret', event.target.siret.value);
|
||||||
formData.append('rna', event.target.rna.value);
|
formData.append('rna', event.target.rna.value);
|
||||||
formData.append('address', event.target.address.value);
|
formData.append('address', event.target.address.value);
|
||||||
|
formData.append('contact', event.target.contact.value);
|
||||||
|
|
||||||
if (event.target.logo.files[0])
|
if (event.target.logo.files[0])
|
||||||
formData.append('logo', event.target.logo.files[0]);
|
formData.append('logo', event.target.logo.files[0]);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user