🐛 corrige la somme et les traductions

pull/267/head
Johan Girod 2018-06-27 18:38:13 +02:00
parent 1356b9629c
commit a0fe2fedda
2 changed files with 9 additions and 5 deletions

View File

@ -286,15 +286,18 @@ const répartition = (ficheDePaie: FicheDePaie): Répartition => {
ficheDePaie.cotisations
)
const { salaireNet, salaireChargé, réductionsDeCotisations } = ficheDePaie
let CSG;
if (cotisations.autres) {
CSG = cotisations.autres.find(({ nom }) => nom === 'CSG')
if (!CSG)
throw new Error('[répartition selector]: expect CSG not to be null')
cotisations.autres = without([CSG], cotisations.autres)
}
const rawRépartition: { [Branche]: MontantPartagé } = map(
totalCotisations,
cotisations
)
if (cotisations.autres) {
const CSG = cotisations.autres.find(({ nom }) => nom === 'CSG')
if (!CSG)
throw new Error('[répartition selector]: expect CSG not to be null')
cotisations.autres = without([CSG], cotisations.autres)
if (CSG) {
dispatchCSGInPlace(CSG, rawRépartition)
}

View File

@ -122,3 +122,4 @@ payslip:
heures: 'Number of hours worked: '
disclaimer: It takes into account national law but not union negotiated rules. Lots of aids for your enterprise exist, explore them on <1>aides-entreprises.fr (french)</1>.
Effacer: Erase
Continuer: Continue