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

If event with payment is deleted, payment is not removed #1944

Open
1 task done
sklirg opened this issue Nov 11, 2017 · 3 comments
Open
1 task done

If event with payment is deleted, payment is not removed #1944

sklirg opened this issue Nov 11, 2017 · 3 comments

Comments

@sklirg
Copy link
Member

sklirg commented Nov 11, 2017

What kind of an issue is this?

  • Bug report

What is the expected behaviour?

That the payment relation is removed too. Appropriate actions should be taken as well, i.e. refunding already paid relations and such.

What is the current behaviour?

The payment is still there, possibly causing marks to be handed out. Also, the payment toString-method crashes since it depends on the object it was connected to.

How do you reproduce this problem?

  • Create an attendance event
  • Create payment for the event
  • Delete the event
  • Payment is still there.
@sklirg
Copy link
Member Author

sklirg commented Nov 11, 2017

@sklirg
Copy link
Member Author

sklirg commented Nov 11, 2017

@oleast
Copy link
Member

oleast commented Oct 18, 2019

This case is not particularly easy to handle by deleting payments.

If someone has paid for an event we want to keep the information about the payments, even if the payments are refunded and the event is deleted. A refunded payment is still a payment, and it should be stored and kept for accounting purposes. This will be even more important when the Fiken integration is finished #2293

To that end, I would rather say that it should be impossible to delete events with an attached payment. Or at the very least if anyone has attended or paid.
The event should somehow be canceled to make up for that, where every attendee is refunded upon cancelation and the event is marked as hidden visible=False.

@henrikhorluck henrikhorluck moved this to Enhancements / Feature requests in Issue cleanup May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Enhancements / Feature requests
Development

No branches or pull requests

2 participants