16.0-fix-l10n_fr_hr_holidays-public-holiday-return #24

Merged
laetitiadacosta merged 2 commits from 16.0-fix-l10n_fr_hr_holidays-public-holiday-return into 16.0 2026-11-04 10:46:58 +00:00
No description provided.
laetitiadacosta added 2 commits 2026-11-04 10:42:59 +00:00
When the next scheduled working day of a part-time employee after the
leave is a public holiday, the leave end date was not postponed to the
day before the actual return, so company working days in between were
not counted (e.g. Wed PM-Fri employee, leave 23/12 -> 31/12 with 01/01
being a Friday: 6 days counted instead of 9).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
[REF]l10n_fr_hr_holidays:clean up leave days computation
Some checks failed
pre-commit / pre-commit (pull_request) Failing after 1m58s
tests / test (pull_request) Successful in 2m25s
25e1d6b957
- remove unused _round_to_nearest_half
- evaluate _l10n_fr_leave_applies once in _get_number_of_days_batch and
  count working dates without a day-by-day loop
- compute the calendar working hours once per date lookup loop
- move pytz import to the top of resource_calendar.py

No functional change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
laetitiadacosta merged commit ef3c9143dd into 16.0 2026-11-04 10:46:58 +00:00
laetitiadacosta deleted branch 16.0-fix-l10n_fr_hr_holidays-public-holiday-return 2026-11-04 10:46:58 +00:00
Sign in to join this conversation.
No description provided.