Skip to content

fix(employees): JSON export follows the contract years - #240

Merged
skjnldsv merged 1 commit into
mainfrom
fix/json-export-contract-years
Nov 17, 2026
Merged

skjnldsv merged 1 commit into
mainfrom
fix/json-export-contract-years

Conversation

@skjnldsv

Copy link
Copy Markdown
Member

The employees JSON export still listed the default days for years outside someone's contract. Since #221 their balance shows 0 for those years, so a round trip reported changes that weren't there. Export and compare now use the same rule as the balance.

👾 This pull request was assisted by Claude Code, commits carry an Assisted-by trailer.

The employees JSON export listed the default entitlement for the current
year when no row existed, and the import compared listed years with that
default, whatever the contract said. The balance gives no default for a
year the contract does not cover.

Export and compare now use the same figure as the balance: the default in
a year the contract covers, 0 otherwise.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com>
@skjnldsv skjnldsv added 3. to review Waiting for reviews bug Something isn't working AI assisted This PR contains AI-assisted commits labels Nov 17, 2026
@skjnldsv skjnldsv self-assigned this Nov 17, 2026
@skjnldsv
skjnldsv merged commit ee6b2d7 into main Nov 17, 2026
48 checks passed
@skjnldsv
skjnldsv deleted the fix/json-export-contract-years branch November 17, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews AI assisted This PR contains AI-assisted commits bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant