Files
F-r-ldraledigplannerare/backend/tests/unit
jacobh2 18c742c16a Let one parent cover what the other cannot afford
A period shared between two parents was cut at its calendar midpoint and each
half handed over regardless of whether that parent could pay for it. A window
crossing New Year could therefore lose its entire first half to a parent whose
budget for that year was spent, while the other parent's budget for the very
same days went untouched. In the case that prompted this, eight days were
reported as unfundable when none of them were.

The cut now falls where the cost is even rather than where the calendar is,
since weekends and red days are free and spread unevenly through a period.
Whatever one parent still cannot cover is offered to the other before any of
it is written off. Each parent keeps one unbroken stretch at home.
2026-09-17 22:43:26 +02:00
..
2026-06-01 16:48:21 +02:00
2026-06-01 20:30:17 +02:00