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

2 Commits

Author SHA1 Message Date
25e1d6b957 [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
- 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>
2026-11-04 11:03:52 +01:00
83f2169647 [FIX]l10n_fr_hr_holidays:skip public holidays when looking for the return day of part-time employees
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>
2026-11-04 11:02:37 +01:00