$ref="Prise en charge du tiers financeur $thirdparty d'un montant de ".$fundingAmount."€ pour l'adhérent ".$adherent.", pour sa cotisation de ".$cotisationAmount."€ avec reversement de $amountDiff MonA";
$thirdPartyAllocationFunding->setReference($ref);
$this->em->persist($thirdPartyAllocationFunding);
// Update allocation flux reference to include third party
$fluxCotisRef.=" ; dont prise en charge de ".$fundingAmount."€ par le tiers financeur $thirdparty";
$fluxCotis->setReference($fluxCotisRef);
}
}
}else{
}else{
// User should receive less than he•she paid: fetch the difference from his account
// User should receive less than he•she paid: fetch the difference from his account
...
@@ -389,6 +380,38 @@ class TAVCotisationUtils
...
@@ -389,6 +380,38 @@ class TAVCotisationUtils
}
}
/**
/**
* Create the ThirdPartyAllocationFunding from adherent and cotisation flux data
$ref="Prise en charge du tiers financeur $thirdparty d'un montant de ".$fundingAmount."€ pour l'adhérent ".$adherent.", pour sa cotisation de ".$cotisationAmount."€ avec reversement de $amountDiff MonA";
$thirdPartyAllocationFunding->setReference($ref);
$this->em->persist($thirdPartyAllocationFunding);
// Update allocation flux reference to include third party
$fluxCotisRef=$fluxCotis->getReference();
$fluxCotisRef.=" ; dont prise en charge de ".$fundingAmount."€ par le tiers financeur $thirdparty";
$fluxCotis->setReference($fluxCotisRef);
}
/**
* Method called to create Flux based on allowance amount (for household based allowance).
* Method called to create Flux based on allowance amount (for household based allowance).