Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
leximpact-budget-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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
leximpact
leximpact-budget-ui
Commits
5504e183
Commit
5504e183
authored
Dec 9, 2021
by
sandcha
Browse files
Options
Downloads
Patches
Plain Diff
Sépare les variables de requête CSG retraite de CSG activité
parent
7e95bd0c
Branches
Branches containing commit
No related tags found
1 merge request
!2
Ajoute la CSG retraite
Pipeline
#1893
skipped
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/routes/index.svelte
+16
-5
16 additions, 5 deletions
src/routes/index.svelte
with
16 additions
and
5 deletions
src/routes/index.svelte
+
16
−
5
View file @
5504e183
...
...
@@ -39,24 +39,35 @@
const
reform
=
getContext
(
"
reform
"
)
as
Writable
<
Reform
>
$
:
console
.
log
(
"
🔶 Réforme définie :
"
,
$reform
)
const
API_OUTPUT_VARIABLES
:
string
[]
=
[
const
API_OUTPUT_VARIABLES
__CSG_ACTIVITE
:
string
[]
=
[
"
assiette_csg_abattue
"
,
"
assiette_csg_non_abattue
"
,
"
assiette_csg_non_abattue
"
,
//TODO utile ou à zéro ?
"
csg_imposable_salaire
"
,
"
csg_deductible_salaire
"
,
]
const
API_OUTPUT_VARIABLES__CSG_RETRAITE
:
string
[]
=
[
"
assiette_csg_abattue
"
,
"
assiette_csg_non_abattue
"
,
//TODO utile ou à zéro ?
"
csg_imposable_retraite
"
,
"
csg_deductible_retraite
"
,
]
const
API_QUANTILES_BASE_VARIABLES
:
string
[]
=
[
"
assiette_csg_abattue
"
,
"
assiette_csg_non_abattue
"
,
]
const
API_QUANTILES_COMPARE_VARIABLES
:
string
[]
=
[
const
API_QUANTILES_COMPARE_VARIABLES__CSG_ACTIVITE
:
string
[]
=
[
"
csg_imposable_salaire
"
,
"
csg_deductible_salaire
"
,
]
const
API_QUANTILES_COMPARE_VARIABLES__CSG_RETRAITE
:
string
[]
=
[
"
csg_imposable_retraite
"
,
"
csg_deductible_retraite
"
,
]
let
csgResponseJson
:
ApiResponse
|
undefined
=
undefined
let
updatingHistogram
=
false
...
...
@@ -78,9 +89,9 @@
?
CALCULATION_PLF_YEAR
:
undefined
,
Object
.
keys
(
reform
).
length
!==
0
?
reform
:
undefined
,
API_OUTPUT_VARIABLES
,
API_OUTPUT_VARIABLES
__CSG_ACTIVITE
,
API_QUANTILES_BASE_VARIABLES
,
API_QUANTILES_COMPARE_VARIABLES
,
API_QUANTILES_COMPARE_VARIABLES
__CSG_ACTIVITE
,
).
then
((
result
)
=>
{
console
.
log
(
"
Réponse d'API Web bien reçue.
"
)
updatingHistogram
=
false
...
...
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