🐛 corrige la somme et les traductions
parent
1356b9629c
commit
a0fe2fedda
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue