This commit is contained in:
Claudio Schaad 2026-07-22 14:37:27 +02:00
parent d819a836da
commit 40105189f5

View file

@ -131,6 +131,7 @@ namespace Schaad.Accounting.Services
var transactions = await viewService.GetTransactionViewListAsync(accountId); var transactions = await viewService.GetTransactionViewListAsync(accountId);
return transactions return transactions
.Where(t => t.TargetAccountId == accountId)
.GroupBy(t => t.Text) .GroupBy(t => t.Text)
.Select(g => new CategoryTotal(g.Key, g.Sum(t => t.GetValue(account.IsFxAccount, accountId)))) .Select(g => new CategoryTotal(g.Key, g.Sum(t => t.GetValue(account.IsFxAccount, accountId))))
.Where(c => c.Value != 0) .Where(c => c.Value != 0)