Commit 372104e6 by Damien Moulard

utilisation du montant du profil de cotisation

parent f6268138
...@@ -148,7 +148,7 @@ class UserAdherentController extends FluxController ...@@ -148,7 +148,7 @@ class UserAdherentController extends FluxController
$this->em->flush(); $this->em->flush();
$this->addFlash( $this->addFlash(
'success', 'success',
$this->translator->trans('Cotisation payée ! (la bonification n\'est pas encore active)') $this->translator->trans('Cotisation payée ! [Payzen désactivé en attent du compte ; bonification pas encore implémentée]')
); );
return $this->redirectToRoute('index'); return $this->redirectToRoute('index');
......
...@@ -38,9 +38,7 @@ class AchatMonnaieFormType extends FluxFormType ...@@ -38,9 +38,7 @@ class AchatMonnaieFormType extends FluxFormType
$montant = 0; $montant = 0;
$profilDeCotisation = $this->security->getUser()->getAdherent()->getProfilDeCotisation(); $profilDeCotisation = $this->security->getUser()->getAdherent()->getProfilDeCotisation();
if (null != $profilDeCotisation) { if (null != $profilDeCotisation) {
// TODO after merge 3569 $montant = $profilDeCotisation->getMontant();
// $montant = $profilDeCotisation->getMontant();
$montant = 15;
} else { } else {
$montant = intval($this->em->getRepository(GlobalParameter::class)->val(GlobalParameter::COTISATION_ADHERENT_DEFAULT)); $montant = intval($this->em->getRepository(GlobalParameter::class)->val(GlobalParameter::COTISATION_ADHERENT_DEFAULT));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment