Commit c447632f by Damien Moulard

fix calculation error

parent 81b9fdeb
......@@ -224,11 +224,11 @@ class TAVCotisationUtils
$childAllowanceAmount = $mclSecondaryAmount;
// Different value for children under limit age, if activated
if (true === $child->getOlderThanLimitAge() && null !== $childUnderLimitAmount) {
if (false === $child->getOlderThanLimitAge() && null !== $childUnderLimitAmount) {
$childAllowanceAmount = (int) $childUnderLimitAmount;
}
// Apply shared custody percentage activated and set
// Apply shared custody percentage if activated and set
if ('true' === $useSharedCustody) {
$sharedCustodyPercentage = $child->getSharedCustodyPercentage();
if ($sharedCustodyPercentage != null) {
......
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