Skip to content
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

Condition d'âge pour l'ASS #1181

Merged
merged 6 commits into from
Oct 27, 2018
Merged

Condition d'âge pour l'ASS #1181

merged 6 commits into from
Oct 27, 2018

Conversation

Morendil
Copy link
Contributor

  • Évolution du système socio-fiscal.
  • Périodes concernées : toutes.
  • Zones impactées : prestations_sociales/ass.
  • Détails :
    • Ajoute une condition d'âge sur l'ASS.
    • Ajoute un test.

Fixes #791


Ces changements (effacez les lignes ne correspondant pas à votre cas) :

  • Corrigent ou améliorent un calcul déjà existant.

Quelques conseils à prendre en compte :

Et surtout, n'hésitez pas à demander de l'aide ! :)

@@ -229,27 +229,33 @@ class ass_eligibilite_individu(Variable):
definition_period = MONTH

def formula(individu, period):
sous_age_limite = individu('age_en_mois', period) <= 789
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Les paramètres législatifs tels que 789 doivent être mis dans parameters. Et je ne comprends pas très bien le 789 ;-) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C'est 65 ans et 9 mois, j'ai introduit un paramètre.


def formula_2017_01_01(individu, period):
sous_age_limite = individu('age_en_mois', period) <= 789
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idem

@@ -229,27 +229,33 @@ class ass_eligibilite_individu(Variable):
definition_period = MONTH

def formula(individu, period):
sous_age_limite = individu('age_en_mois', period) <= 789
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Les paramètres législatifs tels que 789 doivent être mis dans parameters. Et je ne comprends pas très bien le 789 ;-) ?


def formula_2017_01_01(individu, period):
sous_age_limite = individu('age_en_mois', period) <= 789
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idem

@Morendil
Copy link
Contributor Author

@benjello Up ? Est-ce que c'est OK maintenant ?

@benjello
Copy link
Member

Je préfère classer les formules par ordre chronologique décroissant et donc mettre les plus récentes en haut. C'est orthogonal à ta PR. Mais sinon cela me va. Je vais donc approuver.

@Morendil Morendil merged commit 1417c56 into master Oct 27, 2018
@Morendil Morendil deleted the ass-condition-age branch October 27, 2018 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants