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:
parent
6b0d7bac28
commit
c71abaaa79
2 changed files with 5 additions and 1 deletions
|
@ -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 =
|
||||
|
|
|
@ -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 />
|
||||
|
|
Loading…
Add table
Reference in a new issue