Skip to main content
Homepage
Explore
Search or go to…
/
Register
Sign in
Explore
Primary navigation
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
?
Collapse sidebar
Snippets
Groups
Projects
Show more breadcrumbs
leximpact
Simulateur socio-fiscal
leximpact-socio-fiscal-ui
Commits
9c122279
Commit
9c122279
authored
May 31, 2021
by
sandcha
Browse files
Options
Downloads
Patches
Plain Diff
Spread resources fix to test case editor
parent
93b7f568
No related branches found
No related tags found
1 merge request
!12
Fix the attribution of RSA for test cases with high income
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lib/components/test_cases/TestCaseEdit.svelte
+17
-4
17 additions, 4 deletions
src/lib/components/test_cases/TestCaseEdit.svelte
with
17 additions
and
4 deletions
src/lib/components/test_cases/TestCaseEdit.svelte
+
17
−
4
View file @
9c122279
...
@@ -209,12 +209,25 @@
...
@@ -209,12 +209,25 @@
...
adultes
.
map
((
adulte
,
index
)
=>
[
...
adultes
.
map
((
adulte
,
index
)
=>
[
`Adulte
${
index
+
1
}
`
,
`Adulte
${
index
+
1
}
`
,
{
{
// set all resources for 3 years
// salaire_de_base: { [year]: adulte.salaire_de_base },
// salaire_de_base: { [year]: adulte.salaire_de_base },
salaire_de_base
:
Object
.
fromEntries
(
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
"
)}
`
,
`
${
year
}
-
${(
index
+
1
).
toString
().
padStart
(
2
,
"
0
"
)}
`
,
adulte
.
salaire_de_base
/
12
,
adulte
.
salaire_de_base
/
12
,
]),
],
])
.
flat
(
1
),
),
),
},
},
]),
]),
...
...
...
...
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