Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Cycles::EndOf #15

Merged
merged 3 commits into from
Sep 1, 2024
Merged

Fix Cycles::EndOf #15

merged 3 commits into from
Sep 1, 2024

Conversation

jdowd
Copy link
Contributor

@jdowd jdowd commented Sep 1, 2024

The behavior was wrong.

Whereas other cycles determine accomplishment by examining whether the completed_dates include a sufficient quantity fall in-window values, a Cycles::EndOf is by definition satisfied until its #final_date

V1E18MF{some_date} means "add 17 months and go to the last day of that month"

We had been calculating "add 18 months and go to the last day of that month"
EndOf#expiration_of(...) always returns #final_date
@jdowd jdowd force-pushed the fix/end-of-expires-after branch from 7d15ffc to f5e1fb6 Compare September 1, 2024 13:15
@jdowd jdowd merged commit dc0887f into main Sep 1, 2024
2 checks passed
@jdowd jdowd deleted the fix/end-of-expires-after branch September 1, 2024 13:16
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