Skip to content

Commit

Permalink
Envoi le statut de CEJ à openfisca
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-CodeWorks committed Dec 5, 2023
1 parent f94f2a0 commit c2929ba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions backend/lib/openfisca/mapping/individu/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import {
findCommuneByInseeCode,
} from "../../../mes-aides/distance.js"

import common from "../common.js"

import { Activite } from "../../../../../lib/enums/activite.js"
import { IndividuGenerator } from "../../../../../lib/types/individu.js"

Expand Down Expand Up @@ -141,6 +143,12 @@ const individuSchema: IndividuGenerator = {
: "non_agricole"
},
},
sous_contrat_engagement_jeune: {
fn: function (individu, situation) {
const periods = common.getPeriods(situation.dateDeValeur)
return individu.contrat_engagement_jeune[periods.thisMonth] > 0
}
}
}

function isNotValidValue(value) {
Expand Down

0 comments on commit c2929ba

Please sign in to comment.