Skip to content
Snippets Groups Projects
Commit 5504e183 authored by sandcha's avatar sandcha
Browse files

Sépare les variables de requête CSG retraite de CSG activité

parent 7e95bd0c
Branches
No related tags found
1 merge request!2Ajoute la CSG retraite
Pipeline #1893 skipped
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment