1
0
Fork 0
mirror of https://github.com/betagouv/mon-entreprise synced 2025-02-10 13:55:03 +00:00

fix(rgcp): correction du calcul de la régularisation annuelle

This commit is contained in:
Alice Dahan 2025-01-21 16:35:26 +01:00 committed by liliced
parent 2f8f7fa342
commit 04fbf10b57

View file

@ -375,10 +375,10 @@ export const reevaluateRéductionMoisParMois = (
reevaluatedData.map((monthData) => monthData.réduction.value)
)
régularisation.value =
ductionTotale - currentRéductionGénéraleCumulée
duction.value + (ductionTotale - currentRéductionGénéraleCumulée)
if (duction.value + gularisation.value > 0) {
réduction.value += régularisation.value
if (gularisation.value > 0) {
réduction.value = régularisation.value
réduction.répartition = getRépartition(
dottedName,
rémunérationBrute,
@ -393,6 +393,7 @@ export const reevaluateRéductionMoisParMois = (
régularisation.value,
engine
)
réduction.value = 0
}
}
}