Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
leximpact-socio-fiscal-ui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
leximpact
Simulateur socio-fiscal
leximpact-socio-fiscal-ui
Commits
22cb93f1
Unverified
Commit
22cb93f1
authored
Apr 22, 2024
by
Dorine Lambinet
Browse files
Options
Downloads
Patches
Plain Diff
Ajoute le salaire + prime des fonctionnaires
parent
3203a494
Branches
pfu-ajoute-parametre
No related tags found
1 merge request
!221
Ajoute le salaire + prime des fonctionnaires
Pipeline
#13717
passed
Apr 22, 2024
Stage: build
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lib/components/test_cases/TestCaseSummary.svelte
+57
-1
57 additions, 1 deletion
src/lib/components/test_cases/TestCaseSummary.svelte
with
57 additions
and
1 deletion
src/lib/components/test_cases/TestCaseSummary.svelte
+
57
−
1
View file @
22cb93f1
...
...
@@ -740,6 +740,11 @@
"
salaire_de_base
"
,
populationId
,
)
}
{
@
const
traitement_indiciaire_brut
=
getVariableValue
(
situation
,
"
traitement_indiciaire_brut
"
,
populationId
,
)
}
{
@
const
secteur_activite_employeur
=
getVariableValue
(
situation
,
"
secteur_activite_employeur
"
,
...
...
@@ -856,7 +861,7 @@
</span>
</div>
<!--
Salaire de base
-->
<!--
Revenu principal (salaire de base, retraite, etc)
-->
<div
class=
"flex flex-col flex-wrap md:flex-row md:items-center"
>
<div
class=
"mr-2"
>
{
#if
allocation_retour_emploi
}
...
...
@@ -914,6 +919,57 @@
).
toFixed
(
2
),
)
}
<span
class=
"text-sm font-normal"
>
Smic
</span>
</span>
{
:else
if
traitement_indiciaire_brut
}
<span
class=
"text-lg font-bold text-gray-800 2xl:text-xl"
>
{
euroAmountFormatter
(
(
getVariableNumberValue
(
situation
,
"
traitement_indiciaire_brut
"
,
populationId
,
)
??
0
)
+
(
getVariableNumberValue
(
situation
,
"
primes_fonction_publique
"
,
populationId
,
)
??
0
),
)
}
<abbr
class=
"text-xs font-normal"
title=
"Ce montant correspond à la somme du traitement indiciaire brut ({euroAmountFormatter(
getVariableNumberValue(
situation,
'traitement_indiciaire_brut',
populationId,
) ?? 0,
)}) et des primes de la fonction publique ({euroAmountFormatter(
getVariableNumberValue(
situation,
'primes_fonction_publique',
populationId,
) ?? 0,
)}) du cas type"
>
TIB et primes/an
</abbr>
</span>
<span
class=
"text-nowrap text-base text-black bg-gray-300 py-0.5 px-2 rounded-full font-bold"
>
{
parseFloat
(
(
((
getVariableNumberValue
(
situation
,
"
traitement_indiciaire_brut
"
,
populationId
,
)
??
0
)
+
(
getVariableNumberValue
(
situation
,
"
primes_fonction_publique
"
,
populationId
,
)
??
0
))
/
(
smicValue
.
value
*
12
)
).
toFixed
(
1
),
)
}
<span
class=
"text-sm font-normal"
>
Smic
</span>
</span>
{
:else
if
salaire_de_base
!==
0
}
<span
class=
"text-lg font-bold text-gray-800 2xl:text-xl"
>
{
euroAmountFormatter
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment