Commit d12c269d by Yvon

fix latent bug in if else section of PaymentUtils.php

parent c3f3fb0b
...@@ -212,7 +212,7 @@ class PaymentUtils ...@@ -212,7 +212,7 @@ class PaymentUtils
$payment->setClientId($user->getId()); $payment->setClientId($user->getId());
$payment->setExtraData(''); $payment->setExtraData('');
$this->em->persist($payment); $this->em->persist($payment);
} else if (Payment::TYPE_PAIEMENT_COTISATION_TAV == $type || Payment::TYPE_PAIEMENT_RECURRENT_COTISATION_TAV) { } else if (Payment::TYPE_PAIEMENT_COTISATION_TAV == $type || Payment::TYPE_PAIEMENT_RECURRENT_COTISATION_TAV == $type) {
$flux = $this->serializer->deserialize( $flux = $this->serializer->deserialize(
$payment->getFluxData(), $payment->getFluxData(),
AchatMonnaieAdherent::class, AchatMonnaieAdherent::class,
...@@ -247,7 +247,7 @@ class PaymentUtils ...@@ -247,7 +247,7 @@ class PaymentUtils
$this->em->persist($flux); $this->em->persist($flux);
$this->operationUtils->executeOperations($flux); $this->operationUtils->executeOperations($flux);
if (Payment::TYPE_PAIEMENT_COTISATION_TAV == $type || Payment::TYPE_PAIEMENT_RECURRENT_COTISATION_TAV) { if (Payment::TYPE_PAIEMENT_COTISATION_TAV == $type || Payment::TYPE_PAIEMENT_RECURRENT_COTISATION_TAV == $type) {
// Create new flux for cotisation, depending on process // Create new flux for cotisation, depending on process
if ($this->container->getParameter('household_based_allowance')) { if ($this->container->getParameter('household_based_allowance')) {
$this->tavCotisationsUtils->applyHouseholdAllowance($flux); $this->tavCotisationsUtils->applyHouseholdAllowance($flux);
......
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