Skip to content

PM-5839: Include full end dates in payment reports - #127

Merged
jmgasper merged 1 commit into
developfrom
PM-5839
Aug 12, 2026
Merged

PM-5839: Include full end dates in payment reports#127
jmgasper merged 1 commit into
developfrom
PM-5839

Conversation

@jmgasper

Copy link
Copy Markdown
Collaborator

What was broken

Selecting an end date excluded records created later on that date. A same-day range generally returned no records.

Root cause

The report queries cast date-only endDate values to timestamps at midnight and used that instant as the inclusive upper bound.

What was changed

  • Use half-open ranges ending at the start of the next calendar day for payment accrual reports, SFDC payments, and both SFDC BA fee query variants.
  • Keep start dates inclusive.
  • Clarify in the API documentation that end dates include the full calendar day.

Any added/updated tests

  • Added SQL regression assertions for all four affected query variants.
  • The four PM-5839 regression cases pass.
  • pnpm lint and pnpm build pass under Node 22.13.1.
  • The full pnpm test --runInBand run reports 348 passing and 21 failing tests. The same 21 failures were reproduced on a clean origin/develop worktree and are unrelated to this change: 19 SFDC DTO empty-value expectations, one TaaS empty-array expectation, and one Talent Manager report-directory expectation.

What was broken

Date-only endDate values were interpreted at midnight, excluding records later on the selected end date and making same-day ranges appear empty.

Root cause

Timestamp filters used an inclusive <= comparison against a date value cast to midnight.

What was changed

Use half-open date ranges ending at the start of the following calendar day for payment accrual, SFDC payments, and SFDC BA fee queries. Clarify full-day end-date semantics in API docs.

Any added/updated tests

Added SQL regression assertions for all four affected query variants, covering next-day exclusive upper bounds and removal of the old midnight cutoff.
@jmgasper
jmgasper merged commit 4c8c6c9 into develop Aug 12, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant