Skip to content

@W-19306508 Monthly RD Next Donation Date and Installment Fix#7325

Merged
andrewyu-salesforce merged 5 commits into
feature/264from
feature/264_W-19306508-monthly-rd-next-donation-date-fix
May 13, 2026
Merged

@W-19306508 Monthly RD Next Donation Date and Installment Fix#7325
andrewyu-salesforce merged 5 commits into
feature/264from
feature/264_W-19306508-monthly-rd-next-donation-date-fix

Conversation

@andrewyu-salesforce
Copy link
Copy Markdown
Contributor

Critical Changes

Changes

Issues Closed

Community Ideas Delivered

Features Intended for Future Release

New Metadata

Deleted Metadata

@andrewyu-salesforce andrewyu-salesforce changed the base branch from main to feature/264 May 11, 2026 17:54
…p bug (TDD)

Tests verify that monthly RDs with DayOfMonth=31/30/Last_Day starting in
short months (Feb/Apr/Jun) do not skip the current 31-day month when
calculating next donation date. Covers unit, integration, and batch paths.
Adds test for getVisualizedInstallments showing skipped installment when
viewed from a late day in the month (e.g., Mar 29 with Feb start DayOfMonth=31).
Also fixes April/June tests to use referenceDate=Jul 31 to actually trigger the bug.
Apply day-of-month correction before comparing against referenceDate so
the comparison uses the actual donation date (e.g., Jul 31) rather than
the clamped addMonths result (e.g., Jul 28). Extract adjustToTargetDayOfMonth
helper to avoid duplicating the correction logic.

W-19306508
Comment thread force-app/main/default/classes/RD2_ScheduleService.cls
…he 6-step algorithm

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@andrewyu-salesforce andrewyu-salesforce force-pushed the feature/264_W-19306508-monthly-rd-next-donation-date-fix branch from d125583 to 7801843 Compare May 12, 2026 16:41
@andrewyu-salesforce andrewyu-salesforce merged commit 7f0a6de into feature/264 May 13, 2026
9 of 11 checks passed
@andrewyu-salesforce andrewyu-salesforce deleted the feature/264_W-19306508-monthly-rd-next-donation-date-fix branch May 13, 2026 19:02
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.

3 participants