Skip to content

Commit

Permalink
Corrige une utilisation de period.start.period
Browse files Browse the repository at this point in the history
  • Loading branch information
frtomas committed Jul 11, 2023
1 parent ee0342d commit 7d2d2e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openfisca_france_local/departements/eure_et_loir/adefip.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class adefip_eligibilite(Variable):
definition_period = MONTH

def formula(individu, period):
annee_glissante = period.start.period('year').offset(-1)
annee_glissante = Period(('year', period.start, 1)).offset(-1).offset(-1, 'month')

# conditions de domiciliation
residence_eure_loire = individu.menage('eure_loire_eligibilite_residence', period)
Expand Down

0 comments on commit 7d2d2e7

Please sign in to comment.