1
0
Fork 0
mirror of https://github.com/betagouv/mon-entreprise synced 2025-02-09 22:45:01 +00:00
mon-entreprise/modele-social/règles/période.yaml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
693 B
YAML
Raw Normal View History

date: 10/10/2022
période: oui
période . jours ouvrés moyen par mois:
formule: 21 jour ouvré/mois
note: On retient 21 comme nombre de jours ouvrés moyen par mois
période . semaines par mois:
unité: semaine/mois
formule: 52 semaine/an / 12 mois/an
# TODO: This is fragile, we should have a more robust and generic way of
# calculating the beginning and the end of the year of a given date.
période . début d'année:
variations:
- si: date >= 01/2022
alors: 01/01/2022
- si: date >= 01/2021
alors: 01/01/2021
période . fin d'année:
variations:
- si: date <= 31/12/2021
alors: 31/12/2021
- si: date <= 31/12/2022
alors: 31/12/2022