1
0
Fork 0
mirror of https://github.com/betagouv/mon-entreprise synced 2025-03-12 17:25:04 +00:00

feat: n'arrondi pas le taux urssaf dans le récap

This commit is contained in:
Alice Dahan 2025-03-04 10:37:12 +01:00 committed by liliced
parent 6b0d7bac28
commit c71abaaa79
2 changed files with 5 additions and 1 deletions

View file

@ -9,6 +9,7 @@ import { FlexCenter } from '@/design-system/global-style'
import { Grid } from '@/design-system/layout'
import { Strong } from '@/design-system/typography'
import { Body } from '@/design-system/typography/paragraphs'
import { toOuiNon } from '@/domaine/engine/toOuiNon'
import { targetUnitSelector } from '@/store/selectors/simulationSelectors'
import CheckboxImpôts from './CheckboxImpôts'
@ -19,6 +20,7 @@ type SimulationValueProps = {
code: string
label?: string
expression?: PublicodesExpression
arrondi?: boolean
}
export function LigneImpôts({
@ -26,13 +28,14 @@ export function LigneImpôts({
code,
label,
expression,
arrondi = true,
}: SimulationValueProps) {
const engine = useEngine()
const currentUnit = useSelector(targetUnitSelector)
const evaluation = engine.evaluate({
valeur: dottedName,
arrondi: 'oui',
arrondi: toOuiNon(arrondi),
unité: currentUnit,
})
const noValue =

View file

@ -170,6 +170,7 @@ export default function Résultats() {
<LigneImpôts
dottedName="déclaration revenus PAMC . SNIR . taux urssaf"
code="DSAZ"
arrondi={false}
/>
<Spacing xxl />