Skip to content

Commit

Permalink
intègre un paramètre dans les formules
Browse files Browse the repository at this point in the history
  • Loading branch information
clallemand authored and benoit-cty committed Mar 6, 2025
1 parent e65c4d7 commit 8397048
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,13 @@ class cf_eligibilite_base(Variable):
set_input = set_input_dispatch_by_period

def formula(famille, period, parameters):
nb_enfants_min = parameters(period).prestations_sociales.prestations_familiales.prestations_generales.cf.cf_cm.nombre_d_enfants_minimal
residence_dom = famille.demandeur.menage('residence_dom', period)

cf_enfant_eligible = famille.members('cf_enfant_eligible', period)
cf_nbenf = famille.sum(cf_enfant_eligible)

return not_(residence_dom) * (cf_nbenf >= 3)
return not_(residence_dom) * (cf_nbenf >= nb_enfants_min)


class cf_eligibilite_dom(Variable):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ values:
value: 1
1986-07-01:
value: 3
1987-01-01:
value:
1997-01-01:
value: 3
metadata:
short_label: Nombre minimal d'enfants à charge
last_value_still_valid_on: "2025-02-20"
Expand All @@ -25,21 +21,9 @@ metadata:
- title: Décret 85-1353 du 17/12/1985, art. 1 (crée art. L522-1 et R522-1 du CSS)
- title: Décret 89-600 du 28/08/1989, art. 4 (modif art. D522-1)
href: https://www.legifrance.gouv.fr/affichTexteArticle.do?idArticle=LEGIARTI000006774526&cidTexte=JORFTEXT000000885994
1987-01-01:
title: Loi 86-1307 du 29/12/1986, art. 10 et 14 (modif art. L522-1 du CSS)
1997-01-01:
- title: Article R522-1 du Code de la sécurité sociale
href: https://www.legifrance.gouv.fr/codes/article_lc/LEGIARTI000006750615
- title: Ordonnance 96-51 du 24/01/1996, art. 4
2003-12-19:
title: Loi 2003-1199 du 18/12/2003, art. 60 (modif L522-1 du CSS)
href: https://www.legifrance.gouv.fr/affichTexteArticle.do?idArticle=LEGIARTI000006758905&cidTexte=JORFTEXT000000249276
official_journal_date:
1978-01-01: 1977-07-13; 1977-11-17; 1978-09-06
1986-07-01: 1985-12-21; 1989-08-31
1987-01-01: "1986-12-30"
1997-01-01: "1996-01-25"
2003-12-19: "2003-12-19"
notes:
1978-01-01:
- title: Au moins un enfant de moins de 3 ans ou alors 3+ enfants.; Le complément familial remplace l'AFG et l'AMF à compter du 01/01/1978
Expand Down

0 comments on commit 8397048

Please sign in to comment.