Skip to content

Commit

Permalink
fix(aah): msa_master fix aah conjugalise
Browse files Browse the repository at this point in the history
  • Loading branch information
robinguill committed Dec 2, 2024
1 parent 720ba21 commit 1cb6cf9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 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 @@ -159,15 +159,15 @@ def base_ressource_eval_trim():
base_ressource_demandeur = max_(0, assiette_revenu_activite_demandeur(
base_ressource_activite) + base_ressource_hors_activite)

return base_ressource_demandeur
return base_ressource_demandeur + assiette_conjoint(base_ressource_conjoint)

def base_ressource_eval_annuelle():
base_ressource_activite = assiette_revenu_activite_demandeur(
individu('aah_base_ressources_activite_eval_annuelle', period))
base_ressource = base_ressource_activite + \
individu('aah_base_ressources_hors_activite_eval_annuelle', period)

return base_ressource
return base_ressource + assiette_conjoint(base_ressource_conjoint)

return where(
en_activite,
Expand Down
14 changes: 7 additions & 7 deletions tests/formulas/aah/aah.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@
2015-10: 400
2015-09: 400
2015-08: 400
activite:
2018: actif
activite:
2018: actif
output:
aah_base_ressources_conjugalisee:
2015-11: 80
Expand Down Expand Up @@ -171,9 +171,9 @@
2018: inactif
output:
aah_base_ressources_conjugalisee:
2015-11: 154 / 12
2015-11: 108 / 12
aah_base:
2015-11: 795
2015-11: 799

- name: AAH demandeur sans ressource et conjoint salarié
period: month:2015-04
Expand All @@ -186,13 +186,13 @@
age: 40
taux_incapacite: 0.9
activite:
2018: inactif
2015: inactif
parent2:
age: 40
salaire_imposable:
2013: 1128.70 * 12
2015: 1128.70 * 12
activite:
2018: actif
2015: actif
output:
aah_base_ressources_conjugalisee:
2015-11:
Expand Down

0 comments on commit 1cb6cf9

Please sign in to comment.