Merge pull request #268 from betagouv/laem-patch-1

Gestion des erreurs d'arrondis dans la vue simplifiée
pull/356/head
Mael 2018-09-11 11:30:00 +02:00 committed by GitHub
commit 14c69d4365
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -140,17 +140,17 @@ class Distribution extends Component<Props, State> {
<div className="distribution-chart__total">
<span />
<RuleLink {...salaireNet} />
<Montant numFractionDigit={2}>{salaireNet.montant}</Montant>
<Montant numFractionDigit={0}>{salaireNet.montant}</Montant>
<span>+</span>
<Trans>Cotisations</Trans>
<Montant numFractionDigit={2}>
<Montant numFractionDigit={0}>
{total.partPatronale + total.partSalariale}
</Montant>
<span />
<div className="distribution-chart__total-border" />
<span>=</span>
<RuleLink {...salaireChargé} />
<Montant numFractionDigit={2}>{salaireChargé.montant}</Montant>
<Montant numFractionDigit={0}>{salaireChargé.montant}</Montant>
</div>
</>
)