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

Logic error with deactivating people #100

Open
lroellin opened this issue Jun 12, 2017 · 0 comments
Open

Logic error with deactivating people #100

lroellin opened this issue Jun 12, 2017 · 0 comments

Comments

@lroellin
Copy link
Member

The following process leads to a bug where you can't settle up the group anymore. We may need to think again how we handle deactivating users.

My proposal would be that you can't deactivate users when they're still in a transaction. That however may lead to users not using that feature since it's cumbersome or even impossible, but at least it's not wrong anymore.

Reproducible bug description:

  1. Create a new group
  2. Create two people, Alice and Daniel
  3. Create an expense, Payer Alice, Profiteer Daniel (only), amount irrelevant (e.g. 20€)
  4. Suggest payments, create a compensation from Daniel to Alice over that amount (e.g. 20€)
  5. Deactivate Daniel
  6. Delete the compensation you just made
  7. Suggest payments again, it suggests these 20€ from Daniel to Alice again
  8. Create a compensation from Daniel to Alice
  9. Receive "PAYER_INACTIVE"
@lroellin lroellin added the bug label Jun 12, 2017
@lroellin lroellin changed the title Suggest payments to deactivated users fails Logic error with deactivating people Jun 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant