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

Remove PLF from IR budget initial state and document how to update the state

parent bd07c7da
No related branches found
No related tags found
1 merge request!156Désactive le PLF de l'application IR
Pipeline #3344 passed
/* eslint-disable camelcase */ /* eslint-disable camelcase */
import { get } from "lodash"; import { get } from "lodash";
/* XXX Recopier le résultat de l'API */ /**
To update the DEFAULT_STATE below, use leximpact-server Web API response
as its format should be identical to the State interface below:
* if the "base" (= "avant") law is updated, set the compulsory attributes of the State interface to Web API values,
* if the "plf" is activated, add all the "plf" optional attributes of the State interface
and set them to Web API values.
* and do not set any "apres" attribute as the DEFAULT_STATE should NOT include any "amendement".
*/
interface State { interface State {
deciles: { deciles: {
sum_rfr: number; sum_rfr: number;
...@@ -166,7 +173,6 @@ const DEFAULT_STATE: State = { ...@@ -166,7 +173,6 @@ const DEFAULT_STATE: State = {
], ],
total: { total: {
avant: 77000000000.00001, avant: 77000000000.00001,
plf: 82400000000.193146,
}, },
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment