Skip to content

Commit

Permalink
fix: gestion du format du telephone avec agecap
Browse files Browse the repository at this point in the history
  • Loading branch information
flodlc committed Jul 27, 2022
1 parent 01cfde2 commit 4f2b08a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/src/common/components/agecap.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ async function convertContratToAgecapFormat(dossier, cerfa, user) {
regimeSpecifique: cerfa.employeur.regimeSpecifique,
codeIdcc: cerfa.employeur.codeIdcc,
libelleIdcc: libelleIdcc,
telephone: cerfa.employeur.telephone.replace("+", ""), // TO CONVERT + => 00
telephone: cerfa.employeur.telephone,
courriel: cerfa.employeur.courriel,
adresse: {
numero: cerfa.employeur.adresse.numero || undefined,
Expand Down Expand Up @@ -167,7 +167,7 @@ async function convertContratToAgecapFormat(dossier, cerfa, user) {
diplomePrepare: cerfa.apprenti.diplomePrepare,
intituleDiplomePrepare: cerfa.apprenti.intituleDiplomePrepare,
apprentiMineurNonEmancipe: cerfa.apprenti.apprentiMineurNonEmancipe,
telephone: cerfa.apprenti.telephone.replace("+", ""), // TO CONVERT + => 00
telephone: cerfa.apprenti.telephone,
courriel: cerfa.apprenti.courriel,
adresse: {
numero: cerfa.apprenti.adresse.numero || undefined,
Expand Down Expand Up @@ -238,7 +238,7 @@ async function convertContratToAgecapFormat(dossier, cerfa, user) {
organismeDDETS: dossier.ddets.startsWith("97") ? "99" : dossier.ddets,
nomContact: user.nom,
prenomContact: user.prenom,
telephoneContact: user.telephone ? user.telephone.replace("+", "") : undefined,
telephoneContact: user.telephone,
courrielContact: user.email,
// commentaireTransmission
// lien: "",
Expand Down

0 comments on commit 4f2b08a

Please sign in to comment.