Skip to content

Commit

Permalink
Corrige de nouveaux .period
Browse files Browse the repository at this point in the history
  • Loading branch information
eraviart committed Feb 15, 2023
1 parent 7a34284 commit 36f04a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openfisca_france/model/prestations/minima_sociaux/aah.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def assiette_revenu_activite_demandeur(revenus_demandeur):
return (1 - aah.travail_ordinaire.abattement_30) * total_tranche1 + (1 - aah.travail_ordinaire.abattement_sup) * total_tranche2

def base_ressource_eval_trim():
three_previous_months = period.first_month.start.period('month', 3).offset(-3)
three_previous_months = Period(('month', period.first_month.start, 3)).offset(-3)
base_ressource_activite = individu('aah_base_ressources_activite_eval_trimestrielle', period) - individu('aah_base_ressources_activite_milieu_protege', three_previous_months, options = [ADD])
base_ressource_hors_activite = individu('aah_base_ressources_hors_activite_eval_trimestrielle', period) + individu('aah_base_ressources_activite_milieu_protege', three_previous_months, options = [ADD])

Expand Down Expand Up @@ -608,7 +608,7 @@ def formula_2015_07_01(individu, period, parameters):

def formula_2005_07_01(individu, period, parameters):
law = parameters(period).prestations_sociales.prestations_etat_de_sante.invalidite
annee_precedente = period.start.period('year').offset(-1)
annee_precedente = Period(('year', period.start, 1)).offset(-1)
activite_12_mois = individu('salaire_imposable', annee_precedente, options = [ADD]) + individu('rpns_imposables', annee_precedente)

garantie_ressources = law.caah.garantie_ressources
Expand Down

0 comments on commit 36f04a5

Please sign in to comment.