Skip to content

Commit

Permalink
Conversion aide permis nouvelle aquitaine en openfisca (#3977)
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-CodeWorks authored Sep 18, 2023
1 parent 5537e9b commit aaf1b86
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 27 deletions.
6 changes: 6 additions & 0 deletions backend/lib/openfisca/mapping/individu/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ import { Activite } from "../../../../../lib/enums/activite.js"
import { IndividuGenerator } from "../../../../../lib/types/individu.js"

const individuSchema: IndividuGenerator = {
service_civique: {
src: "activite",
fn: function (activite) {
return activite === Activite.ServiceCivique
},
},
activite: {
src: "activite",
fn: function (activite) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,8 @@ instructions: https://les-aides.nouvelle-aquitaine.fr/amenagement-du-territoire/
prefix: l’
type: float
unit:
legend: maximum
floorAt: 10
interestFlag: _interetPermisDeConduire
montant: 1200
entity: individus
openfiscaPeriod: thisMonth
periodicite: ponctuelle
conditions_generales:
- type: regions
values:
- "75"
- type: age
operator: ">="
value: 17
- type: age
operator: <
value: 26
profils:
- type: lyceen
conditions:
- type: annee_etude
values:
- cap_2
- terminale
- type: service_civique
- type: chomeur
- type: apprenti
- type: stagiaire
- type: professionnalisation
interestFlag: _interetPermisDeConduire
4 changes: 2 additions & 2 deletions openfisca/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
gunicorn>=20.1.0
pytest==7.2.2
Openfisca-France==153.0.1
Openfisca-France==153.1.0
Openfisca-Core[web-api]==41.0.0
OpenFisca-France-Local[excel-reader]==6.2.0
OpenFisca-France-Local[excel-reader]==6.3.0
Openfisca-Paris==5.2.0

0 comments on commit aaf1b86

Please sign in to comment.