Skip to content
Snippets Groups Projects
Commit 93b7f568 authored by sandcha's avatar sandcha
Browse files

Set resrouces for 3 years on test case viewer to fix RSA

parent 88ce2687
Branches
Tags
1 merge request!12Fix the attribution of RSA for test cases with high income
......@@ -173,12 +173,25 @@
...adultes.map((adulte, index) => [
`Adulte ${index + 1}`,
{
// set all resources for 3 years
// salaire_de_base: { [year]: adulte.salaire_de_base },
salaire_de_base: Object.fromEntries(
[...new Array(12)].map((_, index) => [
[...new Array(12)]
.map((_, index) => [
[
`${year - 2}-${(index + 1).toString().padStart(2, "0")}`,
adulte.salaire_de_base / 12,
],
[
`${year - 1}-${(index + 1).toString().padStart(2, "0")}`,
adulte.salaire_de_base / 12,
],
[
`${year}-${(index + 1).toString().padStart(2, "0")}`,
adulte.salaire_de_base / 12,
]),
],
])
.flat(1),
),
},
]),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment