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

Update handling of workshops for rollover memberships #2390

Open
maneesha opened this issue Apr 24, 2023 · 1 comment
Open

Update handling of workshops for rollover memberships #2390

maneesha opened this issue Apr 24, 2023 · 1 comment

Comments

@maneesha
Copy link
Contributor

When a membership is rolled over to a new membership, we have the option of carrying over unused benefits. The number of workshops that can be rolled over should correspond with the number of workshops of each type in the source membership.

For example, if a member site had 2 inperson and 1 online workshop remaining, they may roll over at most 2 inperson workshops and 1 online workshop.

@elichad
Copy link
Contributor

elichad commented Dec 5, 2023

Location: fiscal/views.py > MembershipCreateRollOver

  1. Update get_initial and get_form_kwargs and form_valid to pass through the rolled over values for all changed fields. You can copy the lines that are there for the original fields.
  2. Update the tests in fiscal/tests/test_membership.py > TestMembershipCreateRollOver

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

No branches or pull requests

2 participants