-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix AL when loan is fully reimbursed #875
Conversation
Fixes #869 |
a60ab2a
to
a304ad1
Compare
@@ -46,3 +46,28 @@ | |||
age: 40 | |||
output_variables: | |||
aides_logement_primo_accedant: 0 | |||
|
|||
- name: AL Primo Accédant / Prêt remboursé | |||
output_variables: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Est-ce que mettre
output_variables:
à la fin du test serait plus en phase avec l'organisation 'traditionnelle' des test ?
@@ -910,7 +910,7 @@ def formula_2007_07(famille, period, parameters): | |||
K = famille('aides_logement_primo_accedant_k', period) | |||
Lo = famille('aides_logement_primo_accedant_loyer_minimal', period) | |||
|
|||
return K * max_(0, (L + C - Lo)) | |||
return (L > 0) * K * max_(0, (L + C - Lo)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
D'après ce que je comprends, les APL primo-accédant sont liés à la souscription d'un prêt d’accession sociale (PAS). Le remboursement du PAS (anticipé ou non) induit la perte des ces aides. Si c'est la bonne interprétation, une autre condition à ajouter serait l'obtention d'un PAS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merci pour l'information mais c'est un sujet différent du problème que l'on souhaite résoudre avec cette modification.
Il faudrait en effet regarder ça de plus près si des différences nous sont remontées par des usagers.
prestations/aides_logement.py