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

Account closing potentially possible with non-zero balance #247

Open
TheAxelander opened this issue May 28, 2024 · 0 comments
Open

Account closing potentially possible with non-zero balance #247

TheAxelander opened this issue May 28, 2024 · 0 comments
Labels
Milestone

Comments

@TheAxelander
Copy link
Owner

This should be .Where(i => i.AccountId == id) otherwise it just checks for primary key of BankTransaction which should never find anything

var balance = repository.All()
.Where(i => i.Id == id)
.ToList()
.Sum(i => i.Amount);

@TheAxelander TheAxelander added this to the 1.9 milestone May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🐞Bugs
Development

No branches or pull requests

1 participant