fix
This commit is contained in:
@@ -223,6 +223,7 @@ public class AccountRepository : AppRepository<Account>, IAccountRepository
|
||||
{
|
||||
return _context.Motions
|
||||
.Where(x => x.DateTime >= from && x.DateTime <= to)
|
||||
.Where(x => x.Item.Category!.UserId == userId)
|
||||
.Where(x => x.Item.CategoryId == categoryId)
|
||||
.Where(x => !x.Item.Category!.IsInternal)
|
||||
.Where(x => x.Item.Category!.UserId == userId)
|
||||
@@ -235,9 +236,9 @@ public class AccountRepository : AppRepository<Account>, IAccountRepository
|
||||
})
|
||||
.Select(x => new MotionTotalSimple
|
||||
{
|
||||
Name = x.Key.Name,
|
||||
CurrencyId = x.Key.CurrencyId,
|
||||
CurrencyName = x.Key.CurrencyName,
|
||||
Name = x.Key.Name,
|
||||
Amount = x.Sum(a => a.AmountPlus),
|
||||
})
|
||||
.ToList();
|
||||
|
||||
Reference in New Issue
Block a user