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

Improve the handling of organisations #89

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MarcMichalsky
Copy link
Contributor

@MarcMichalsky MarcMichalsky commented May 6, 2024

When the user_company field is submitted, an organisation and an individual are currently created and linked. The downstream logic will then only refer to the individual and ignore the organisation. Instead, I would like to relate everything related to the contribution-contact relationship to the organisation rather than the individual.

This PR:

  • creates a donation_receipt group membership for the organisation if one is provided.
  • creates a membership for the organisation if one is provided.

I would argue that in this case we should refrain from making the change configurable, as the current behaviour is illogical (certainly in the case of the donation_receipt group).

@jensschuppe jensschuppe added the status:needs work There is code, but it needs additional work before it should be reviewed label Jun 6, 2024
@jensschuppe jensschuppe added this to the 1.5 milestone Jun 6, 2024
@jensschuppe jensschuppe added the enhancement New feature or request label Jun 6, 2024
@MarcMichalsky
Copy link
Contributor Author

Alright, I understand that it would make sense to make some things configurable and that it would then be an enhancement. (see #83 (comment))

In the meantime, could we at least merge commit 6869757? This is a bug that is currently preventing contacts from receiving a donation receipt.

@jensschuppe
Copy link
Collaborator

jensschuppe commented Jun 12, 2024

Moved this part

creates a donation_receipt group membership for the organisation if one is provided.

out into #94.

So this PR leaves us with the option to assign the organisation to the membership, rather than the individual, which should be made configurable and have either the current behavior as default or an upgrader for restoring the current behavior to existing profiles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request status:needs work There is code, but it needs additional work before it should be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants