-
-
Notifications
You must be signed in to change notification settings - Fork 114
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] membership_extension: support restarted memberships #191
[FIX] membership_extension: support restarted memberships #191
Conversation
When a membership got cancelled and, later, restarted, we still had a cancellation date set, leading to the sensation that it was still cancelled. With this refactor, when a cancellation date is earlier than a future start date, cancellation info is removed from the partner. BTW I improved a few things: - Removed old dead code that is no longer necessary in v16. - Fix a test that was checking what happened when a membership line was cancelled before its start date. It seems a wrong use case because memberships are only supposed to be cancelled during the membership, and not before starting it. - Free members need to be considered members too. - Migration script. @moduon MT-8237
Before this fix, when creating many memberships at once, only the last one was really created. @moduon MT-8237
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/ocabot merge patch
On my way to merge this fine PR! |
This PR has the |
Congratulations, your PR was merged at 7965a0f. Thanks a lot for contributing to OCA. ❤️ |
When a membership got cancelled and, later, restarted, we still had a cancellation date set, leading to the sensation that it was still cancelled.
With this refactor, when a cancellation date is earlier than a future start date, cancellation info is removed from the partner.
Before:
After:
BTW I improved a few things:
@moduon MT-8237