Commit fec7bc5e by Félicie

Merge branch '4276-round-cotisation-amounts' into 'develop'

round cotisation amount for float rates

See merge request cooperatic/kohinos-tav!22
parents f0844afc 56509028
...@@ -175,7 +175,7 @@ class UserAdherentController extends FluxController ...@@ -175,7 +175,7 @@ class UserAdherentController extends FluxController
$this->em->flush(); $this->em->flush();
$this->addFlash( $this->addFlash(
'success', 'success',
$this->translator->trans('Cotisation payée ! [Payzen désactivé en attent du compte]') $this->translator->trans('Cotisation payée ! [Paiement via Payzen temporairement désactivé]')
); );
return $this->redirectToRoute('index'); return $this->redirectToRoute('index');
......
...@@ -56,7 +56,7 @@ class TAVCotisationUtils ...@@ -56,7 +56,7 @@ class TAVCotisationUtils
$profile = $flux->getDestinataire()->getProfilDeCotisation(); $profile = $flux->getDestinataire()->getProfilDeCotisation();
$cotisationAmount = $profile->getMontant(); $cotisationAmount = $profile->getMontant();
$cotisationTaux = $profile->getTauxCotisation(); $cotisationTaux = $profile->getTauxCotisation();
$mlcAmount = $cotisationAmount * $cotisationTaux; $mlcAmount = round($cotisationAmount * $cotisationTaux);
// get the difference between what the user paid and what he•she's supposed to receive // get the difference between what the user paid and what he•she's supposed to receive
$amountDiff = $mlcAmount - $cotisationAmount; $amountDiff = $mlcAmount - $cotisationAmount;
......
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