-
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
Mise à jours des bourses de collège et lycée #707
Conversation
593e6d3
to
369a27b
Compare
3c691bb
to
bac7bd8
Compare
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.
Nice PR! Sorry for those minor fixes :)
CHANGELOG.md
Outdated
* Périodes concernées : à partir du 01/07/2016. | ||
- Les changements prennent effet à partir de la rentrée scolaire 2016 | ||
* Zones impactées: `prestations/education` | ||
* Détails: |
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.
' ' avant les ':' en français
CHANGELOG.md
Outdated
- Les changements prennent effet à partir de la rentrée scolaire 2016 | ||
* Zones impactées: `prestations/education` | ||
* Détails: | ||
- Met à jour le mode de calcul des bourses de collège et lycée, entrés en vigueur à la rentrée 2016. |
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.
entrés => entré (le mode de calcul)
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.
Ou "pour la rentrée"
label = u"Montant annuel de la bourse de collège" | ||
class bourse_college_echelon(DatedVariable): | ||
column = IntCol | ||
label = u"Echelon de la bourse de collège attribuée" |
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.
Accent sur le E de Échelon
label = u"Montant annuel de la bourse de collège" | ||
class bourse_college_echelon(DatedVariable): | ||
column = IntCol | ||
label = u"Echelon de la bourse de collège attribuée" |
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.
Accent sur le E de Échelon
class bourse_lycee(Variable): | ||
class bourse_lycee_echelon(Variable): | ||
column = IntCol | ||
label = u"Echelon de la bourse de collège attribuée" |
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.
Accent sur le E de Échelon
|
||
def function(famille, period, legislation): | ||
""" | ||
Références Legislatives: |
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.
Accent sur le e de Législatives
@dated_function(start = date(2016, 07, 01)) | ||
def function_apres_2016(famille, period, legislation): | ||
""" | ||
Références legislatives : |
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.
Accent sur le e de Législatives
@dated_function(start = date(2016, 07, 01)) | ||
def function_apres_2016(famille, period, legislation): | ||
""" | ||
Références Legislatives: |
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.
Accent sur le e de Législatives
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.
(2016, 7, 1) plutôt que (2016, 07, 01) ça évitera aux éditeurs de s'énerver
|
||
def function(famille, period, legislation): | ||
""" | ||
Références legislatives : |
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.
Accent sur le e de Législatives
CHANGELOG.md
Outdated
- Les changements prennent effet à partir de la rentrée scolaire 2016 | ||
* Zones impactées: `prestations/education` | ||
* Détails: | ||
- Met à jour le mode de calcul des bourses de collège et lycée, entrés en vigueur à la rentrée 2016. |
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.
Ou "pour la rentrée"
@dated_function(start = date(2016, 07, 01)) | ||
def function_apres_2016(famille, period, legislation): | ||
""" | ||
Références Legislatives: |
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.
(2016, 7, 1) plutôt que (2016, 07, 01) ça évitera aux éditeurs de s'énerver
nb_enfants_college = sum( | ||
scolarite == SCOLARITE_COLLEGE for scolarite in scolarites.itervalues() | ||
) | ||
@dated_function(stop = date(2016, 06, 30)) |
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.
Idem supra
points_de_charge += 2 * (nb_enfants >= 3) + 2 * (nb_enfants >= 4) # 2 points de charge pour les 3ème et 4ème enfants | ||
points_de_charge += 3 * (nb_enfants >= 5) * (nb_enfants - 4) # 3 points de charge pour chaque enfant au-dessus de 4 enfants | ||
points_de_charge += 3 * isole # 3 points de charge en plus si parent isolé | ||
stop_date = date(2016, 07, 01) |
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.
idem supra
@@ -82,12 +152,13 @@ class bourse_lycee_nombre_parts(Variable): | |||
label = u"Nombre de parts pour le calcul du montant de la bourse de lycée" | |||
entity = Famille | |||
definition_period = MONTH | |||
stop_date = date(2016, 07, 01) |
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.
idem supra
nombre_parts = simulation.calculate('bourse_lycee_nombre_parts', period) | ||
scolarite_holder = simulation.compute('scolarite', period) | ||
valeur_part = simulation.legislation_at(period.start).bourses_education.bourse_lycee.valeur_part | ||
@dated_function(start = date(2016, 07, 01)) |
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.
idem supra
return nb_enfants_lycee * montant_par_enfant | ||
|
||
|
||
@dated_function(stop = date(2016, 06, 30)) |
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.
idem supra
def function_apres_2016(famille, period, legislation): | ||
""" | ||
Références Legislatives: | ||
Références législatives: |
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.
' '
before:
entity = Famille | ||
definition_period = MONTH | ||
|
||
def function(famille, period, legislation): | ||
""" | ||
Références Legislatives: | ||
Références législatives: |
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.
' '
before:
Fixes betagouv#73
prestations/education
bourse_college_echelon
etbourse_lycee_echelon