Skip to content
Snippets Groups Projects
Unverified Commit 14f46591 authored by Dorine Lambinet's avatar Dorine Lambinet
Browse files

Fix affichage inflator pour les montants révalués, même retrait du PLF/PLFSS

parent 9bca6493
Branches
Tags
1 merge request!303Fix affichage inflator pour les montants révalués, même retrait du PLF/PLFSS
Pipeline #19728 passed
......@@ -4,7 +4,7 @@
const bubble = createBubbler()
import type { ValueParameter } from "@openfisca/json-model"
import { billName, yearPLF } from "$lib/shared.svelte"
import { billName, revaluationName } from "$lib/shared.svelte"
import { formatValue } from "$lib/values"
interface Props {
......@@ -51,6 +51,19 @@
? formatValue(billInflator.values["latest"].value, billInflator.unit)
: undefined,
)
let revaluationInflator = $derived(
inflatorWithLatestByReformName?.[revaluationName],
)
let revaluationInflatorValueFormatted = $derived(
revaluationInflator !== undefined
? formatValue(
revaluationInflator.values["latest"].value,
revaluationInflator.unit,
)
: undefined,
)
</script>
<button
......@@ -73,7 +86,7 @@
Revalorisation de {billInflatorValueFormatted}, suite à l'indexation
d'usage du barème de l'IR par le PLF.
{:else}
Indexation sur l'inflation à {billInflatorValueFormatted}.
Indexation sur l'inflation à {revaluationInflatorValueFormatted}.
{/if}
</p>
</button>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment