Commit Graph
3 Commits
Author SHA1 Message Date
aksdb 590758dfb6 🐛 Bound hours per week on settings
The field accepted any number from 0.01 up, so a typo or a bad client
could store more hours than a week has and break every expected value
derived from it. The initial migration limits hours_per_week to 168; no
database was ever deployed with the previous version of the migration.
2026-12-01 16:54:32 +01:00
aksdb 0bfacb7059 🐛 Reject week keys that are not real ISO weeks
WeekDayKeys accepted W01 to W53 without checking that the year has that
week. Closing 2025-W53, a year with 52 weeks, closed the days of
2026-W01 under a second key and the balance counted them twice. The
computed Monday must now map back to the requested week key.
2026-12-01 16:43:40 +01:00
aksdb 611a2d105a 🧪 Test day and week closing rules 2026-11-29 20:27:12 +00:00